diff --git a/os/utils.c b/os/utils.c index 65e131166..9824501e7 100644 --- a/os/utils.c +++ b/os/utils.c @@ -55,11 +55,13 @@ OR PERFORMANCE OF THIS SOFTWARE. /* The world's most shocking hack, to ensure we get clock_gettime() and * CLOCK_MONOTONIC. */ +#ifdef sun /* Needed to tell Solaris headers not to restrict to */ +#define __EXTENSIONS__ /* only the functions defined in POSIX 199309. */ +#endif + #ifdef _POSIX_C_SOURCE #define _SAVED_POSIX_C_SOURCE _POSIX_C_SOURCE #undef _POSIX_C_SOURCE -#else if defined(sun) /* Needed to tell Solaris headers not to restrict to */ -#define __EXTENSIONS__ /* only the functions defined in POSIX 199309. */ #endif #define _POSIX_C_SOURCE 199309L #include