From 031f26801a86acf6c0f094a24bdcf34a45ba1bda Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Mon, 9 Dec 2013 09:49:28 +0100 Subject: [PATCH] Solaris port, add -D flag to get strdup. --- configure | 2 ++ configure.ac | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 467a5866..5aa781ff 100755 --- a/configure +++ b/configure @@ -3221,6 +3221,8 @@ case "$host_os" in # pick up strdup() declaration # in ;; + solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from + ;; esac # always use ./libtool unless override from commandline (libtool=mylibtool) diff --git a/configure.ac b/configure.ac index 9f4590c8..81e2e464 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,9 @@ case "$host_os" in linux* ) CFLAGS="$CFLAGS -D_XOPEN_SOURCE=501" # unfortunate, but needed to # pick up strdup() declaration # in - ;; + ;; + solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from + ;; esac # always use ./libtool unless override from commandline (libtool=mylibtool)