Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Check if humanize_number is declared before actually looking for the symbol
Baptiste Daroussin committed 7 years ago
commit 7a17689d0214307072923f1c1b19f823cbbaf5cc
parent a47e40e
1 file changed +9 -3
modified auto.def
@@ -136,9 +136,15 @@ cc-check-functions arc4random arc4random_stir basename_r chflagsat \
	strtofflags strtonum sysconf utimensat __res_setservers unlinkat \
	faccessat fstatat openat readlinkat fflagstostr

-
cc-with { -libs { -lutil }} {
-
	if {[cc-check-functions humanize_number]} {
-
		define-feature LIBUTIL
+
cc-with { -includes { libutil.h }} {
+
	if {[cc-check-decls humanize_number]} {
+
	}
+
}
+
if {[get-define HAVE_DECL_HUMANIZE_NUMBER] eq 1} {
+
	cc-with { -libs { -lutil }} {
+
		if {[cc-check-functions humanize_number]} {
+
			define-feature LIBUTIL
+
		}
	}
}