]> git.sesse.net Git - vlc/commitdiff
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 f4c09c6db45aba982140ff3e7708505371e5ab6b..e543936f2cb0c1ad54a3dbf1d67d23e145a75b1e 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 );