diff options
author | wm4 <wm4@nowhere> | 2013-11-28 19:28:38 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-28 19:28:38 +0100 |
commit | 0d255f07bf46948289a2698a4a7063514d0e1ef9 (patch) | |
tree | 640b11bf0a569aa9292db6e31e697ada2ccdba7f /osdep/io.c | |
parent | 0a18f3eb9a163b1cd656129dac6164d7914ecc41 (diff) | |
download | mpv-0d255f07bf46948289a2698a4a7063514d0e1ef9.tar.bz2 mpv-0d255f07bf46948289a2698a4a7063514d0e1ef9.tar.xz |
build: make pthreads mandatory
pthreads should be available anywhere. Even if not, for environment
without threads a pthread wrapper could be provided that can't actually
start threads, thus disabling features that require threads.
Make pthreads mandatory in order to simplify build dependencies and to
reduce ifdeffery. (Admittedly, there wasn't much complexity, but maybe
we will use pthreads more in the future, and then it'd become a real
bother.)
Diffstat (limited to 'osdep/io.c')
-rw-r--r-- | osdep/io.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/osdep/io.c b/osdep/io.c index cc99c24370..94bd90a676 100644 --- a/osdep/io.c +++ b/osdep/io.c @@ -59,10 +59,7 @@ char *mp_to_utf8(void *talloc_ctx, const wchar_t *s) #include <io.h> #include <fcntl.h> - -#if HAVE_PTHREADS #include <pthread.h> -#endif #include "mpvcore/mp_talloc.h" @@ -300,12 +297,8 @@ static void init_getenv(void) char *mp_getenv(const char *name) { -#if HAVE_PTHREADS static pthread_once_t once_init_getenv = PTHREAD_ONCE_INIT; pthread_once(&once_init_getenv, init_getenv); -#else - init_getenv(); -#endif // Copied from musl, http://git.musl-libc.org/cgit/musl/tree/COPYRIGHT // Copyright © 2005-2013 Rich Felker, standard MIT license int i; |