From 0764d323d8908c1682f3ab654c48783438a88a54 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 29 Apr 2021 15:12:44 +0200 Subject: Fix -Wundef warnings for patterns `#if HAVE` * See [Feature #17752] * Using this to detect them: git grep -P 'if\s+HAVE' | grep -Pv 'HAVE_LONG_LONG|/ChangeLog|HAVE_TYPEOF' --- thread_pthread.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'thread_pthread.c') diff --git a/thread_pthread.c b/thread_pthread.c index 8149ee57f5..3e0c78b256 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -20,9 +20,9 @@ #ifdef HAVE_THR_STKSEGMENT #include #endif -#if HAVE_FCNTL_H +#if defined(HAVE_FCNTL_H) #include -#elif HAVE_SYS_FCNTL_H +#elif defined(HAVE_SYS_FCNTL_H) #include #endif #ifdef HAVE_SYS_PRCTL_H -- cgit v1.2.1