]> granicus.if.org Git - php/commitdiff
Fix [-Wundef] warning in POSIX extension
authorGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 12:00:14 +0000 (14:00 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Wed, 20 May 2020 12:01:11 +0000 (14:01 +0200)
ext/posix/php_posix.h
ext/posix/posix.c

index 55a096dc59aeb9f7a8cb5a29a46247cb585381ba..590d613bd465620275eefa13a749c7c9aaae2139 100644 (file)
@@ -21,7 +21,7 @@
 #include "config.h"
 #endif
 
-#if HAVE_POSIX
+#ifdef HAVE_POSIX
 #ifndef DLEXPORT
 #define DLEXPORT
 #endif
index 8c48f32acc9da2f216d7bc6cc425cec76dbd8a75..c623b5406fa8a97d21a0d2b53679649c98abdb30 100644 (file)
@@ -25,7 +25,7 @@
 #include "php_posix.h"
 #include "posix_arginfo.h"
 
-#if HAVE_POSIX
+#ifdef HAVE_POSIX
 
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>