mirror of https://github.com/mpv-player/mpv
Revert "osdep: NetBSD pthread_setname_np()"
This reverts commit 2e81698d28
.
Seems like this was a patch applied from someone who can't agree to LGPL
relicensing (see previous commit), with the author field not properly
set.
This is not so important anyway, so just revert it.
This commit is contained in:
parent
5c038e6999
commit
9f461b85bf
|
@ -21,10 +21,6 @@
|
|||
|
||||
#include "config.h"
|
||||
|
||||
#if HAVE_BSD_THREAD_NAME
|
||||
#include <pthread_np.h>
|
||||
#endif
|
||||
|
||||
#include "threads.h"
|
||||
#include "timer.h"
|
||||
|
||||
|
@ -49,8 +45,6 @@ void mpthread_set_name(const char *name)
|
|||
}
|
||||
#elif HAVE_WIN32_INTERNAL_PTHREADS || HAVE_BSD_THREAD_NAME
|
||||
pthread_set_name_np(pthread_self(), tname);
|
||||
#elif HAVE_NETBSD_THREAD_NAME
|
||||
pthread_setname_np(pthread_self(), "%s", (void *)tname);
|
||||
#elif HAVE_OSX_THREAD_NAME
|
||||
pthread_setname_np(tname);
|
||||
#endif
|
||||
|
|
9
wscript
9
wscript
|
@ -251,15 +251,8 @@ 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', '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")',
|
||||
'pthread_set_name_np(pthread_self(), "ducks")',
|
||||
use=['pthreads']),
|
||||
}, {
|
||||
'name': 'bsd-fstatfs',
|
||||
|
|
Loading…
Reference in New Issue