From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2116) id 196723858C56; Tue, 21 Jun 2022 15:03:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 196723858C56 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Ian Lance Taylor To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-1189] libgo: #include when checking for loff_t X-Act-Checkin: gcc X-Git-Author: Ian Lance Taylor X-Git-Refname: refs/heads/master X-Git-Oldrev: f1fcd6e3ad911945bc3c24a3a5c7ea99b910121e X-Git-Newrev: 7905a9ac26707ed6ac49e40e35a9c8755c6574e3 Message-Id: <20220621150329.196723858C56@sourceware.org> Date: Tue, 21 Jun 2022 15:03:29 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2022 15:03:29 -0000 https://gcc.gnu.org/g:7905a9ac26707ed6ac49e40e35a9c8755c6574e3 commit r13-1189-g7905a9ac26707ed6ac49e40e35a9c8755c6574e3 Author: Ian Lance Taylor Date: Sat Jun 18 18:19:28 2022 -0700 libgo: #include 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 +ac_fn_c_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" " +#include +#include + " 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 ]]) +AC_CHECK_TYPES([loff_t], [], [], [[ +#include +#include +]]) CFLAGS="$CFLAGS_hold" LIBS_hold="$LIBS"