summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-22 01:02:55 +0200
committerwm4 <wm4@nowhere>2014-10-22 01:04:52 +0200
commit2e81698d2809836d4cd7f754a78598e7bdf96c0b (patch)
tree46054afb396609088960aa566aaf774323ac4524 /wscript
parent7eb047b2417d9b6cc3690fba75a50967a315955c (diff)
downloadmpv-2e81698d2809836d4cd7f754a78598e7bdf96c0b.tar.bz2
mpv-2e81698d2809836d4cd7f754a78598e7bdf96c0b.tar.xz
osdep: NetBSD pthread_setname_np()
From: bugmen0t on github Fixes #1207.
Diffstat (limited to 'wscript')
-rw-r--r--wscript9
1 files changed, 8 insertions, 1 deletions
diff --git a/wscript b/wscript
index 3eadc37aef..58d8e1e55e 100644
--- a/wscript
+++ b/wscript
@@ -227,10 +227,17 @@ iconv support use --disable-iconv.",
'name': 'bsd-thread-name',
'desc': 'BSD API for setting thread name',
'deps_neg': [ 'glibc-thread-name', 'osx-thread-name' ],
- 'func': check_statement('pthread.h',
+ 'func': check_statement(['pthread.h', 'pthread_np.h'],
'pthread_set_name_np(pthread_self(), "ducks")',
use=['pthreads']),
}, {
+ 'name': 'netbsd-thread-name',
+ 'desc': 'NetBSD API for setting thread name',
+ 'deps_neg': [ 'glibc-thread-name', 'osx-thread-name', 'bsd-thread-name' ],
+ 'func': check_statement('pthread.h',
+ 'pthread_setname_np(pthread_self(), "%s", (void *)"ducks")',
+ use=['pthreads']),
+ }, {
'name': 'bsd-fstatfs',
'desc': "BSD's fstatfs()",
'func': check_statement(['sys/param.h', 'sys/mount.h'],