diff --git a/ext/standard/config.m4 b/ext/standard/config.m4 index dc5dc1b472b48..71e9260b37be8 100644 --- a/ext/standard/config.m4 +++ b/ext/standard/config.m4 @@ -345,7 +345,7 @@ dnl PHP_CHECK_FUNC(res_search, resolv, socket) -AC_CHECK_FUNCS([posix_spawn_file_actions_addchdir_np]) +AC_CHECK_FUNCS([posix_spawn_file_actions_addchdir_np elf_aux_info]) dnl dnl Obsolete check for strptime() declaration. The strptime, where available, diff --git a/ext/standard/crc32.c b/ext/standard/crc32.c index 9b598489d3f0b..d9ccd78feb53b 100644 --- a/ext/standard/crc32.c +++ b/ext/standard/crc32.c @@ -28,7 +28,7 @@ # include # elif defined(__APPLE__) # include -# elif defined(__FreeBSD__) +# elif defined(HAVE_ELF_AUX_INFO) # include static unsigned long getauxval(unsigned long key) {