aboutsummaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@gcc.gnu.org>2011-12-22 20:39:29 +0000
committerIan Lance Taylor <ian@gcc.gnu.org>2011-12-22 20:39:29 +0000
commitbbe847a162d99872542c9574301b2bfc19c6b365 (patch)
tree9d08f5b05e0ebab9f854d748db48d43eb6c6deb0 /libgo
parentee777b71644eda0bf9e3c6dc81e6518ed594ec8a (diff)
downloadgcc-bbe847a162d99872542c9574301b2bfc19c6b365.zip
gcc-bbe847a162d99872542c9574301b2bfc19c6b365.tar.gz
gcc-bbe847a162d99872542c9574301b2bfc19c6b365.tar.bz2
libgo: Use -std=gnu99 on Solaris 10.
From Rainer Orth. From-SVN: r182637
Diffstat (limited to 'libgo')
-rwxr-xr-xlibgo/configure4
-rw-r--r--libgo/configure.ac4
2 files changed, 4 insertions, 4 deletions
diff --git a/libgo/configure b/libgo/configure
index d9915f9..c1ee7ba 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -13818,9 +13818,9 @@ case "$target" in
;;
*-*-solaris2.1[01])
# Solaris 10+ needs this so struct msghdr gets the msg_control
- # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
+ # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
# above doesn't work with C99.
- OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
+ OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
;;
esac
diff --git a/libgo/configure.ac b/libgo/configure.ac
index a001d50..a56106e 100644
--- a/libgo/configure.ac
+++ b/libgo/configure.ac
@@ -292,9 +292,9 @@ case "$target" in
;;
*-*-solaris2.1[[01]])
# Solaris 10+ needs this so struct msghdr gets the msg_control
- # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=500 as
+ # etc. fields in <sys/socket.h> (_XPG4_2). _XOPEN_SOURCE=600 as
# above doesn't work with C99.
- OSCFLAGS="$OSCFLAGS -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
+ OSCFLAGS="$OSCFLAGS -std=gnu99 -D_XOPEN_SOURCE=600 -D__EXTENSIONS__"
;;
esac
AC_SUBST(OSCFLAGS)