libgo: Use -std=gnu99 on Solaris 10.
authorIan Lance Taylor <ian@gcc.gnu.org>
Thu, 22 Dec 2011 20:39:29 +0000 (20:39 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 22 Dec 2011 20:39:29 +0000 (20:39 +0000)
From Rainer Orth.

From-SVN: r182637

libgo/configure
libgo/configure.ac

index d9915f91afcf22ab674e01a0f93785748776723e..c1ee7bac0826e77fe7ca8307a71dae5c52285175 100755 (executable)
@@ -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
 
index a001d50b58a4f7643f94e042e084fb668f2dba84..a56106eaca94158d39ed5aae1a580bb1badb4e32 100644 (file)
@@ -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)