Solaris port, add -D flag to get strdup.

This commit is contained in:
W.C.A. Wijngaards 2013-12-09 09:49:28 +01:00
parent e80082aeaf
commit 031f26801a
2 changed files with 5 additions and 1 deletions

2
configure vendored
View File

@ -3221,6 +3221,8 @@ case "$host_os" in
# pick up strdup() declaration
# in <string.h>
;;
solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from <string.h>
;;
esac
# always use ./libtool unless override from commandline (libtool=mylibtool)

View File

@ -21,7 +21,9 @@ case "$host_os" in
linux* ) CFLAGS="$CFLAGS -D_XOPEN_SOURCE=501" # unfortunate, but needed to
# pick up strdup() declaration
# in <string.h>
;;
;;
solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from <string.h>
;;
esac
# always use ./libtool unless override from commandline (libtool=mylibtool)