changeset 1598:5a6893ebc15a

Need time.h for nanosleep too...
author Sam Lantinga <slouken@libsdl.org>
date Thu, 23 Mar 2006 08:37:36 +0000
parents 06e9f1c7611b
children ecba4bbaf9c2
files src/timer/unix/SDL_systimer.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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