diff --git a/configure b/configure index d4757bad..9c9fe3ef 100755 --- a/configure +++ b/configure @@ -3304,6 +3304,8 @@ case "$host_os" in ;; solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from ;; + darwin* ) CFLAGS="$CFLAGS -D_DARWIN_C_SOURCE" # for strlcpy() from + ;; esac # always use ./libtool unless override from commandline (libtool=mylibtool) diff --git a/configure.ac b/configure.ac index 2ca944d2..ef6b6a37 100755 --- a/configure.ac +++ b/configure.ac @@ -49,6 +49,8 @@ case "$host_os" in ;; solaris* ) CFLAGS="$CFLAGS -D__EXTENSIONS__" # for strdup() from ;; + darwin* ) CFLAGS="$CFLAGS -D_DARWIN_C_SOURCE" # for strlcpy() from + ;; esac # always use ./libtool unless override from commandline (libtool=mylibtool)