Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
configure: use C23 to check for elf headers
Baptiste Daroussin committed 3 months ago
commit 08c85fca57478fda3a2246aef14e66b2def10193
parent db15b84
2 files changed +1 -4
modified auto.def
@@ -228,9 +228,6 @@ if {[string match *-darwin* [get-define host]]} {
# libelf
	define waflags "-Wl,-whole-archive"
	define nowaflags "-Wl,-no-whole-archive"
-
	cc-with { -includes { sys/types.h }} {
-
		cc-check-includes elf-hints.h sys/elf_common.h
-
	}

	if {[cc-check-includes gelf.h libelf.h]} {
		cc-with { -libs { -lelf } } {
modified libpkg/pkg_elf.c
@@ -17,7 +17,7 @@
#include <machine/endian.h>
#endif
#include <sys/types.h>
-
#if defined(HAVE_SYS_ELF_COMMON_H) && !defined(__DragonFly__)
+
#if __has_include(<sys/elf_common.h>) && !defined(__DragonFly__)
#include <sys/elf_common.h>
#endif
#include <sys/stat.h>