mirror of git://gcc.gnu.org/git/gcc.git
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
This commit is contained in:
parent
f1fcd6e3ad
commit
7905a9ac26
|
@ -1,4 +1,4 @@
|
||||||
a409e049737ec9a358a19233e017d957db3d6d2a
|
77821de1a149c2e6ef9c154ae384c16292173039
|
||||||
|
|
||||||
The first line of this file holds the git revision number of the last
|
The first line of this file holds the git revision number of the last
|
||||||
merge done from the gofrontend repository.
|
merge done from the gofrontend repository.
|
||||||
|
|
|
@ -15549,7 +15549,10 @@ fi
|
||||||
|
|
||||||
CFLAGS_hold="$CFLAGS"
|
CFLAGS_hold="$CFLAGS"
|
||||||
CFLAGS="$OSCFLAGS $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 :
|
if test "x$ac_cv_type_loff_t" = xyes; then :
|
||||||
|
|
||||||
|
|
|
@ -604,7 +604,10 @@ AC_TYPE_OFF_T
|
||||||
|
|
||||||
CFLAGS_hold="$CFLAGS"
|
CFLAGS_hold="$CFLAGS"
|
||||||
CFLAGS="$OSCFLAGS $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"
|
CFLAGS="$CFLAGS_hold"
|
||||||
|
|
||||||
LIBS_hold="$LIBS"
|
LIBS_hold="$LIBS"
|
||||||
|
|
Loading…
Reference in New Issue