/* In debug mode, timeout */
struct timespec timeout;
-# if (_POSIX_CLOCK_MONOTONIC - 0 >= 0)
+# if defined (_POSIX_CLOCK_MONOTONIC) && (_POSIX_CLOCK_MONOTONIC >= 0)
if( clock_gettime( CLOCK_MONOTONIC, &timeout ) )
# endif
clock_gettime( CLOCK_REALTIME, &timeout );
if (ret)
return ret;
-# if defined (HAVE_CLOCK_NANOSLEEP) && (_POSIX_CLOCK_MONOTONIC - 0 >= 0)
+# if defined (_POSIX_CLOCK_MONOTONIC) && (_POSIX_CLOCK_MONOTONIC >= 0)
/* This must be the same clock as the one in mtime.c */
pthread_condattr_setclock (&attr, CLOCK_MONOTONIC);
# endif