From 3cf91cadef8c1564990d40bda1bc04b1e47c7176 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Tue, 30 Jul 2024 23:26:42 +0100 Subject: [PATCH] ext/standard: enabling feature detection auxiliary vector on OpenBSD. --- ext/standard/config.m4 | 2 +- ext/standard/crc32.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {