Skip to content

Commit

Permalink
Always check HAVE_XYZ flags with #ifdef
Browse files Browse the repository at this point in the history
Meson uses #define HAVE_FEATURE (without 1), so it matters there
  • Loading branch information
omoerbeek committed Mar 22, 2024
1 parent 3753769 commit cf05a8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdns/threadname.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include <pthread.h>

#if HAVE_PTHREAD_NP_H
#ifdef HAVE_PTHREAD_NP_H
#include <pthread_np.h>
#endif

Expand Down

0 comments on commit cf05a8c

Please sign in to comment.