BUILD: wdt: only test for SI_TKILL when compiled with thread support
SI_TKILL is not necessarily defined on older systems and is used only
with the pthread_kill() call a few lines below, so it should also be
subject to the USE_THREAD condition.
(cherry picked from commit 0627815f701ee6549bcf4c2611df8ccdd3bd3fc9)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit c32c7e3b39711c329b759a5767276b543913621a)
Signed-off-by: Willy Tarreau <w@1wt.eu>
diff --git a/src/wdt.c b/src/wdt.c
index adaf6f4..876a5f0 100644
--- a/src/wdt.c
+++ b/src/wdt.c
@@ -101,12 +101,12 @@
/* No doubt now, there's no hop to recover, die loudly! */
break;
-
+#ifdef USE_THREAD
case SI_TKILL:
/* we got a pthread_kill, stop on it */
thr = tid;
break;
-
+#endif
default:
/* unhandled other conditions */
return;