]> git.sesse.net Git - vlc/blobdiff - include/vlc_threads.h
* AUTHORS: changed contribution description on author's request.
[vlc] / include / vlc_threads.h
index 86edcdc99119a5a31bdf6e941c313a7864b8b5ff..cc62078e86c7b6dfe1a0515d7ea5aa3355dd28fb 100644 (file)
@@ -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 <stdio.h>
 
 #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 <pthread.h>
 #   ifdef DEBUG
@@ -274,3 +278,4 @@ typedef struct
 
 #endif
 
+#endif