Get rid of strlcpy warning on Mac

This commit is contained in:
Willem Toorop 2014-11-06 21:07:04 +01:00
parent a4bb10396f
commit d5dc654f5c
2 changed files with 4 additions and 0 deletions

2
configure vendored
View File

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

View File

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