Need time.h for nanosleep too...
authorSam Lantinga <slouken@libsdl.org>
Thu, 23 Mar 2006 08:37:36 +0000
changeset 1598 5a6893ebc15a
parent 1597 06e9f1c7611b
child 1599 ecba4bbaf9c2
Need time.h for nanosleep too...
src/timer/unix/SDL_systimer.c
--- a/src/timer/unix/SDL_systimer.c	Thu Mar 23 07:44:52 2006 +0000
+++ b/src/timer/unix/SDL_systimer.c	Thu Mar 23 08:37:36 2006 +0000
@@ -36,7 +36,7 @@
    for __USE_POSIX199309
    Tommi Kyntola (tommi.kyntola@ray.fi) 27/09/2005
 */
-#if HAVE_CLOCK_GETTIME
+#if HAVE_NANOSLEEP || HAVE_CLOCK_GETTIME
 #include <time.h>
 #endif