]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Always check HAVE_XYZ flags with #ifdef 13971/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 22 Mar 2024 14:10:31 +0000 (15:10 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Fri, 22 Mar 2024 14:13:22 +0000 (15:13 +0100)
Meson uses #define HAVE_FEATURE (without 1), so it matters there

pdns/threadname.cc

index 39e904ce9111d7edea29035c9bd5415e12508c20..90b7b974a14afa608a6a5a32ab7382b8b4ff8d88 100644 (file)
@@ -27,7 +27,7 @@
 
 #include <pthread.h>
 
-#if HAVE_PTHREAD_NP_H
+#ifdef HAVE_PTHREAD_NP_H
 #include <pthread_np.h>
 #endif