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 # pick up strdup() declaration
# in <string.h> # in <string.h>
;; ;;
solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from <string.h>
;;
esac esac
# always use ./libtool unless override from commandline (libtool=mylibtool) # always use ./libtool unless override from commandline (libtool=mylibtool)

View File

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