Commit 071e2180 authored by Ryan C. Gordon's avatar Ryan C. Gordon

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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401161
parent 5f482106
...@@ -41,7 +41,13 @@ static char rcsid = ...@@ -41,7 +41,13 @@ static char rcsid =
*/ */
#if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0) #if (defined _POSIX_TIMERS && _POSIX_TIMERS > 0)
#include <time.h> #include <time.h>
#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 #endif
#include "SDL_error.h" #include "SDL_error.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment