Add *sunos* conditional to solaris section for opensolaris, and add -D_XPG4_2 -D__EXTENSIONS__ to CFLAGS on these platforms.

This commit is contained in:
William Pitcock 2008-08-01 17:02:58 -05:00
parent 143b6cc1e4
commit d7e75f0ab9
1 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,8 @@ case "$host_os" in
CPPFLAGS="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
;;
*solaris*)
CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS"
*sunos*)
CPPFLAGS="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2 -D__EXTENSIONS__"
;;
*)
;;