Skip to content

Commit c099713

Browse files
committed
Fix [-Wundef] warning in PHPDBG SAPI
1 parent 56698af commit c099713

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sapi/phpdbg/phpdbg_watch.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -1382,11 +1382,11 @@ PHPDBG_WATCH(array) /* {{{ */
13821382

13831383

13841384
void phpdbg_setup_watchpoints(void) {
1385-
#if _SC_PAGE_SIZE
1385+
#if defined(_SC_PAGE_SIZE)
13861386
phpdbg_pagesize = sysconf(_SC_PAGE_SIZE);
1387-
#elif _SC_PAGESIZE
1387+
#elif defined(_SC_PAGESIZE)
13881388
phpdbg_pagesize = sysconf(_SC_PAGESIZE);
1389-
#elif _SC_NUTC_OS_PAGESIZE
1389+
#elif defined(_SC_NUTC_OS_PAGESIZE)
13901390
phpdbg_pagesize = sysconf(_SC_NUTC_OS_PAGESIZE);
13911391
#else
13921392
phpdbg_pagesize = 4096; /* common pagesize */

0 commit comments

Comments
 (0)