Commit bbe847a1 by Ian Lance Taylor

libgo: Use -std=gnu99 on Solaris 10.

From Rainer Orth.

From-SVN: r182637
parent ee777b71
...@@ -13818,9 +13818,9 @@ case "$target" in ...@@ -13818,9 +13818,9 @@ case "$target" in
;; ;;
*-*-solaris2.1[01]) *-*-solaris2.1[01])
# Solaris 10+ needs this so struct msghdr gets the msg_control # 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. # 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 esac
......
...@@ -292,9 +292,9 @@ case "$target" in ...@@ -292,9 +292,9 @@ case "$target" in
;; ;;
*-*-solaris2.1[[01]]) *-*-solaris2.1[[01]])
# Solaris 10+ needs this so struct msghdr gets the msg_control # 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. # 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 esac
AC_SUBST(OSCFLAGS) AC_SUBST(OSCFLAGS)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment