summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2021-04-29 15:12:44 +0200
committerBenoit Daloze <eregontp@gmail.com>2021-05-04 14:56:55 +0200
commit0764d323d8908c1682f3ab654c48783438a88a54 (patch)
treee335e7f8f9c3a4d8a6c14bdce81af07102244ad7 /thread_pthread.c
parentfa7a712d460dc904f8a836bb22b54d457d95ba8e (diff)
downloadruby-0764d323d8908c1682f3ab654c48783438a88a54.tar.gz
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'
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c4
1 files changed, 2 insertions, 2 deletions
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 <thread.h>
#endif
-#if HAVE_FCNTL_H
+#if defined(HAVE_FCNTL_H)
#include <fcntl.h>
-#elif HAVE_SYS_FCNTL_H
+#elif defined(HAVE_SYS_FCNTL_H)
#include <sys/fcntl.h>
#endif
#ifdef HAVE_SYS_PRCTL_H