diff --git a/include/common/compat.h b/include/common/compat.h index 9b97d8214..088b2c9b2 100644 --- a/include/common/compat.h +++ b/include/common/compat.h @@ -105,7 +105,7 @@ typedef struct { } empty_t; #endif /* systems without such defines do not know clockid_t or timer_t */ -#if !(_POSIX_TIMERS > 0) || (_POSIX_C_SOURCE < 199309L) +#if !(_POSIX_TIMERS > 0) #undef clockid_t #define clockid_t empty_t #undef timer_t diff --git a/src/wdt.c b/src/wdt.c index 10b7e5e24..45438d6b5 100644 --- a/src/wdt.c +++ b/src/wdt.c @@ -25,7 +25,7 @@ * It relies on timer_create() and timer_settime() which are only available in * this case. */ -#if defined(USE_THREAD) && (_POSIX_TIMERS > 0) && defined(_POSIX_THREAD_CPUTIME) && (_POSIX_C_SOURCE >= 199309L) +#if defined(USE_THREAD) && (_POSIX_TIMERS > 0) && defined(_POSIX_THREAD_CPUTIME) /* We'll deliver SIGALRM when we've run out of CPU as it's not intercepted by * gdb by default.