summaryrefslogtreecommitdiff
path: root/sapi/phpdbg
diff options
context:
space:
mode:
authorGeorge Peter Banyard <girgias@php.net>2020-05-12 17:54:25 +0200
committerGeorge Peter Banyard <girgias@php.net>2020-05-12 22:02:51 +0200
commitc0997130ec30f36ed1f87929b676f2521c84b2e2 (patch)
tree16ca73e04824d7c0b83d33b407b28bff9736a853 /sapi/phpdbg
parent56698afb6dd0ce4c6358c44ea254324e375cff18 (diff)
downloadphp-git-c0997130ec30f36ed1f87929b676f2521c84b2e2.tar.gz
Fix [-Wundef] warning in PHPDBG SAPI
Diffstat (limited to 'sapi/phpdbg')
-rw-r--r--sapi/phpdbg/phpdbg_watch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/phpdbg/phpdbg_watch.c b/sapi/phpdbg/phpdbg_watch.c
index 69dff94eb6..62fb65a67e 100644
--- a/sapi/phpdbg/phpdbg_watch.c
+++ b/sapi/phpdbg/phpdbg_watch.c
@@ -1382,11 +1382,11 @@ PHPDBG_WATCH(array) /* {{{ */
void phpdbg_setup_watchpoints(void) {
-#if _SC_PAGE_SIZE
+#if defined(_SC_PAGE_SIZE)
phpdbg_pagesize = sysconf(_SC_PAGE_SIZE);
-#elif _SC_PAGESIZE
+#elif defined(_SC_PAGESIZE)
phpdbg_pagesize = sysconf(_SC_PAGESIZE);
-#elif _SC_NUTC_OS_PAGESIZE
+#elif defined(_SC_NUTC_OS_PAGESIZE)
phpdbg_pagesize = sysconf(_SC_NUTC_OS_PAGESIZE);
#else
phpdbg_pagesize = 4096; /* common pagesize */