diff options
author | Ian Lance Taylor <iant@golang.org> | 2022-06-18 18:19:28 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2022-06-21 08:03:17 -0700 |
commit | 7905a9ac26707ed6ac49e40e35a9c8755c6574e3 (patch) | |
tree | 6af893d33fba2d059e928b6e38fe65bf52db4a7c /libgo | |
parent | f1fcd6e3ad911945bc3c24a3a5c7ea99b910121e (diff) | |
download | gcc-7905a9ac26707ed6ac49e40e35a9c8755c6574e3.zip gcc-7905a9ac26707ed6ac49e40e35a9c8755c6574e3.tar.gz gcc-7905a9ac26707ed6ac49e40e35a9c8755c6574e3.tar.bz2 |
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
Diffstat (limited to 'libgo')
-rwxr-xr-x | libgo/configure | 5 | ||||
-rw-r--r-- | libgo/configure.ac | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/libgo/configure b/libgo/configure index b7ff9b3..61a4994 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 bac58b0..274fcfc 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" |