From d5dc654f5c2b244a6195a2045799a49122ddf756 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Thu, 6 Nov 2014 21:07:04 +0100 Subject: [PATCH] Get rid of strlcpy warning on Mac --- configure | 2 ++ configure.ac | 2 ++ 2 files changed, 4 insertions(+) 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)