From: George Peter Banyard Date: Tue, 12 May 2020 15:54:25 +0000 (+0200) Subject: Fix [-Wundef] warning in PHPDBG SAPI X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c0997130ec30f36ed1f87929b676f2521c84b2e2;p=php Fix [-Wundef] warning in PHPDBG SAPI --- 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 */