From bc1b8206064a5b0e3ab1df4df8467c86c0736c6e Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Thu, 23 May 2019 10:20:55 +0200 Subject: [PATCH] BUILD: watchdog: condition it to USE_RT It's needed on Linux to have access to timerfd_*, and on FreeBSD this lib is needed as well, though not enabled in our default build. We can see later if it's OK to enable it, for now let's fix the build issues. --- src/wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wdt.c b/src/wdt.c index 60a5fd4320..19d36c34d2 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) +#if defined(USE_THREAD) && defined(USE_RT) && (_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. -- 2.47.3