timespec is in time.h, not sys/time.h
authorRémi Denis-Courmont <rem@videolan.org>
Thu, 24 Jan 2008 16:38:25 +0000 (16:38 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Thu, 24 Jan 2008 16:38:25 +0000 (16:38 +0000)
include/vlc_threads.h

index f4c09c6..e543936 100644 (file)
 
 #include <stdio.h>
 
-#if defined(DEBUG) && defined(HAVE_SYS_TIME_H)
-#   include <sys/time.h>
-#endif
-
 #if defined( UNDER_CE )
                                                                 /* WinCE API */
 #elif defined( WIN32 )
 #   include <pthread.h>
     /* Needed for pthread_cond_timedwait */
 #   include <errno.h>
+#   ifdef DEBUG
+#      include <time.h>
+#   endif
+
     /* This is not prototyped under Linux, though it exists. */
     int pthread_mutexattr_setkind_np( pthread_mutexattr_t *attr, int kind );