summaryrefslogtreecommitdiff
path: root/shells/dash/patches
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2017-05-15 14:52:44 +0000
committerjperkin <jperkin@pkgsrc.org>2017-05-15 14:52:44 +0000
commit86defa21f36128b19034dbefc3930c44a351fcba (patch)
treeadf29d3288b9664b6b4f05220d94f32ee3991fd5 /shells/dash/patches
parent472903768c4fe6193079fdd38aea121b853fb6be (diff)
downloadpkgsrc-86defa21f36128b19034dbefc3930c44a351fcba.tar.gz
Check for stat64 declaration. Fixes SunOS 64-bit build.
Diffstat (limited to 'shells/dash/patches')
-rw-r--r--shells/dash/patches/patch-configure25
1 files changed, 25 insertions, 0 deletions
diff --git a/shells/dash/patches/patch-configure b/shells/dash/patches/patch-configure
new file mode 100644
index 00000000000..841da5239e4
--- /dev/null
+++ b/shells/dash/patches/patch-configure
@@ -0,0 +1,25 @@
+$NetBSD: patch-configure,v 1.1 2017/05/15 14:52:44 jperkin Exp $
+
+Check for stat64 declaration too.
+
+--- configure.orig 2016-09-23 14:51:16.000000000 +0000
++++ configure
+@@ -4685,6 +4685,10 @@ 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
+
+
+ fi
++fi
+
+
+ ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"