]> git.sesse.net Git - vlc/commitdiff
errno.h is always needed for pthread now
authorRémi Denis-Courmont <rem@videolan.org>
Mon, 17 Sep 2007 14:21:14 +0000 (14:21 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Mon, 17 Sep 2007 14:21:14 +0000 (14:21 +0000)
include/vlc_threads.h
include/vlc_threads_funcs.h

index 911d36b73709dd3c895bfef4a352f6581291395c..31b851c62b9adc180e6406f62b7fd21371487a81 100644 (file)
 #   define _APPLE_C_SOURCE    1 /* Proper pthread semantics on OSX */
 
 #   include <pthread.h>
-#   ifdef DEBUG
-        /* Needed for pthread_cond_timedwait */
-#       include <errno.h>
-#   endif
+    /* Needed for pthread_cond_timedwait */
+#   include <errno.h>
     /* This is not prototyped under Linux, though it exists. */
     int pthread_mutexattr_setkind_np( pthread_mutexattr_t *attr, int kind );
 
index 7fe0095d57343a51815d48fdbb53e5c15181cc3f..4e4a8ebef266c441c2bcc9c4aae0dd05a109ec4e 100644 (file)
@@ -45,8 +45,6 @@ VLC_EXPORT( int,  __vlc_thread_set_priority, ( vlc_object_t *, const char *, int
 VLC_EXPORT( void, __vlc_thread_ready,  ( vlc_object_t * ) );
 VLC_EXPORT( void, __vlc_thread_join,   ( vlc_object_t *, const char *, int ) );
 
-#include <errno.h>
-
 /*****************************************************************************
  * vlc_threads_init: initialize threads system
  *****************************************************************************/