public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1189] libgo: #include <sys/types.h> when checking for loff_t
@ 2022-06-21 15:03 Ian Lance Taylor
0 siblings, 0 replies; only message in thread
From: Ian Lance Taylor @ 2022-06-21 15:03 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:7905a9ac26707ed6ac49e40e35a9c8755c6574e3
commit r13-1189-g7905a9ac26707ed6ac49e40e35a9c8755c6574e3
Author: Ian Lance Taylor <iant@golang.org>
Date: Sat Jun 18 18:19:28 2022 -0700
libgo: #include <sys/types.h> when checking for loff_t
PR go/106033
Fixes golang/go#53469
Reviewed-on: https://go-review.googlesource.com/c/gofrontend/+/413214
Diff:
---
gcc/go/gofrontend/MERGE | 2 +-
libgo/configure | 5 ++++-
libgo/configure.ac | 5 ++++-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/gcc/go/gofrontend/MERGE b/gcc/go/gofrontend/MERGE
index 4b75dd37355..737bc483274 100644
--- a/gcc/go/gofrontend/MERGE
+++ b/gcc/go/gofrontend/MERGE
@@ -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.
diff --git a/libgo/configure b/libgo/configure
index b7ff9b32867..61a49947eb9 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -15549,7 +15549,10 @@ fi
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 :
diff --git a/libgo/configure.ac b/libgo/configure.ac
index bac58b07b41..274fcfc35c7 100644
--- a/libgo/configure.ac
+++ b/libgo/configure.ac
@@ -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"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-21 15:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-21 15:03 [gcc r13-1189] libgo: #include <sys/types.h> when checking for loff_t Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).