# HG changeset patch # User Ryan C. Gordon # Date 1129061154 0 # Node ID ec446adf8cb2fd5d9c257c587dd8999f56eb2b30 # Parent baf35853ad542d64454a74ca611bb7de14745c8c POSIX clock_gettime() isn't available on Linux before 2.6, and the symbol may just be flat out missing from glibc, so force use of previous gettimeofday() behaviour for now. diff -r baf35853ad54 -r ec446adf8cb2 src/timer/linux/SDL_systimer.c --- a/src/timer/linux/SDL_systimer.c Tue Oct 11 18:16:12 2005 +0000 +++ b/src/timer/linux/SDL_systimer.c Tue Oct 11 20:05:54 2005 +0000 @@ -41,7 +41,13 @@ */ #if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0) #include -#define USE_CLOCK_GETTIME +/* + * clock_gettime() is missing in my system's glibc, and apparently isn't + * available before Linux kernel 2.6...you can uncomment the following + * define to use it, since it may be a better solution than + * gettimeofday() on systems that support the newer syscall. --ryan. + */ +/*#define USE_CLOCK_GETTIME*/ #endif #include "SDL_error.h"