X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=include%2Fvlc_threads.h;h=cc62078e86c7b6dfe1a0515d7ea5aa3355dd28fb;hb=cf255cfb0ea09fd15c8dbaeccc03380eb9a282a9;hp=86edcdc99119a5a31bdf6e941c313a7864b8b5ff;hpb=49a7dec5d6f8f2ca73b937badc50a8a3b6146666;p=vlc diff --git a/include/vlc_threads.h b/include/vlc_threads.h index 86edcdc991..cc62078e86 100644 --- a/include/vlc_threads.h +++ b/include/vlc_threads.h @@ -29,6 +29,9 @@ #error You are not libvlc or one of its plugins. You cannot include this file #endif +#ifndef _VLC_THREADS_H_ +#define _VLC_THREADS_H_ + #include #if defined(DEBUG) && defined(HAVE_SYS_TIME_H) @@ -53,6 +56,7 @@ #elif defined( PTHREAD_COND_T_IN_PTHREAD_H ) /* pthreads (like Linux & BSD) */ # define LIBVLC_USE_PTHREAD 1 +# define _APPLE_C_SOURCE 1 /* Proper pthread semantics on OSX */ # include # ifdef DEBUG @@ -274,3 +278,4 @@ typedef struct #endif +#endif