Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Zend/zend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1275,9 +1275,10 @@ ZEND_API size_t zend_get_page_size(void)
SYSTEM_INFO system_info;
GetSystemInfo(&system_info);
return system_info.dwPageSize;
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__) || defined(__APPLE__)
/* This returns the value obtained from
* the auxv vector, avoiding a syscall. */
* the auxv vector, avoiding a
* syscall (on FreeBSD)/function call (on macOS). */
return getpagesize();
#else
return (size_t) sysconf(_SC_PAGESIZE);
Expand Down