summaryrefslogtreecommitdiff
path: root/shells/dash/patches/patch-configure
blob: bcacccea5ecf6604d26dbe578d42148c99445e87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
$NetBSD: patch-configure,v 1.2 2021/06/22 15:16:59 schmonz Exp $

Check for stat64 declaration too.

--- configure.orig	2021-06-04 07:50:42.000000000 +0000
+++ configure
@@ -4852,11 +4852,17 @@ fi
 
 fi
 
-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
+if test "$ac_cv_func_stat64" != yes; then
 
 $as_echo "#define fstat64 fstat" >>confdefs.h