]> git.ipfire.org Git - people/ms/gcc.git/commitdiff
libgo: #include <sys/types.h> when checking for loff_t
authorIan Lance Taylor <iant@golang.org>
Sun, 19 Jun 2022 01:19:28 +0000 (18:19 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 21 Jun 2022 15:03:17 +0000 (08:03 -0700)
PR go/106033

Fixes golang/go#53469

Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/413214

gcc/go/gofrontend/MERGE
libgo/configure
libgo/configure.ac

index 4b75dd3735561cb59707203e35b5e76c1d5aa0f5..737bc483274efe654e4c23f825dd6020cb1d30a0 100644 (file)
@@ -1,4 +1,4 @@
-a409e049737ec9a358a19233e017d957db3d6d2a
+77821de1a149c2e6ef9c154ae384c16292173039
 
 The first line of this file holds the git revision number of the last
 merge done from the gofrontend repository.
index b7ff9b32867f60aa5c396fcb770f0425db94d100..61a49947eb947488a94ac3bd1a5399aefcdb858a 100755 (executable)
 
 CFLAGS_hold="$CFLAGS"
 CFLAGS="$OSCFLAGS $CFLAGS"
-ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "#include <fcntl.h>
+ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "
+#include <sys/types.h>
+#include <fcntl.h>
+
 "
 if test "x$ac_cv_type_loff_t" = xyes; then :
 
index bac58b07b41c02bfcbe4fe7056a75749ce609950..274fcfc35c77b767e0fdf303d46343bb0c8e5af4 100644 (file)
@@ -604,7 +604,10 @@ AC_TYPE_OFF_T
 
 CFLAGS_hold="$CFLAGS"
 CFLAGS="$OSCFLAGS $CFLAGS"
-AC_CHECK_TYPES([loff_t], [], [], [[#include <fcntl.h>]])
+AC_CHECK_TYPES([loff_t], [], [], [[
+#include <sys/types.h>
+#include <fcntl.h>
+]])
 CFLAGS="$CFLAGS_hold"
 
 LIBS_hold="$LIBS"