diff options
author | schmonz <schmonz@pkgsrc.org> | 2021-06-22 15:16:59 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2021-06-22 15:16:59 +0000 |
commit | ea84a128d4325dc39c987f2fd15c2082f62ed7fe (patch) | |
tree | 4ceec86f609205ba48c48d85e8f3c860703d2aec /shells/dash/patches/patch-configure | |
parent | dd73411c1ea97bfef6e83fee68aa463e73c4c4be (diff) | |
download | pkgsrc-ea84a128d4325dc39c987f2fd15c2082f62ed7fe.tar.gz |
Check a little harder for stat64. Fixes the build on my M1 with
Big Sur 11.4.
Diffstat (limited to 'shells/dash/patches/patch-configure')
-rw-r--r-- | shells/dash/patches/patch-configure | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/shells/dash/patches/patch-configure b/shells/dash/patches/patch-configure index 841da5239e4..bcacccea5ec 100644 --- a/shells/dash/patches/patch-configure +++ b/shells/dash/patches/patch-configure @@ -1,25 +1,27 @@ -$NetBSD: patch-configure,v 1.1 2017/05/15 14:52:44 jperkin Exp $ +$NetBSD: patch-configure,v 1.2 2021/06/22 15:16:59 schmonz Exp $ Check for stat64 declaration too. ---- configure.orig 2016-09-23 14:51:16.000000000 +0000 +--- configure.orig 2021-06-04 07:50:42.000000000 +0000 +++ configure -@@ -4685,6 +4685,10 @@ fi +@@ -4852,11 +4852,17 @@ fi fi -+ac_fn_c_check_decl "$LINENO" "stat64" "ac_cv_decl_stat64" "$ac_includes_default -+" -+if test "x$ac_cv_decl_stat64" = xyes; then : -+else - ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64" - if test "x$ac_cv_func_stat64" = xyes; then : - -@@ -4701,6 +4705,7 @@ $as_echo "#define stat64 stat" >>confdef +-ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64" +-if test "x$ac_cv_func_stat64" = xyes; then : ++ac_fn_c_check_decl "$LINENO" "stat64" "ac_cv_have_decl_stat64" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" ++if test "x$ac_cv_have_decl_stat64" = xyes ++then : ++ ac_fn_c_check_func "$LINENO" "stat64" "ac_cv_func_stat64" ++if test "x$ac_cv_func_stat64" = xyes ++then : +-else ++fi - fi +fi ++if test "$ac_cv_func_stat64" != yes; then + $as_echo "#define fstat64 fstat" >>confdefs.h - ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64" |