From 71086c66cee3e6ad1c7a601677ebeead39d64bf7 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 12 Sep 2017 18:54:38 +0300 Subject: Define HAVE_STRNDUP macro for FreeBSD --- libpkgconf/config.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/libpkgconf/config.h b/libpkgconf/config.h index 00ff8cb..cc09d9c 100644 --- a/libpkgconf/config.h +++ b/libpkgconf/config.h @@ -10,13 +10,12 @@ /* * strndup() is not present on Windows, for gcc and clang if compile with - * -std=C99, except for MacOS. + * -std=C99, except for FreeBSD and MacOS. + * + * strl*() are only present on FreeBSD and MacOS. */ -#if defined (__apple_build_version__) -# define HAVE_STRNDUP 1 -#endif - #if defined(__FreeBSD__) || defined(__apple_build_version__) +# define HAVE_STRNDUP 1 # define HAVE_STRLCPY 1 # define HAVE_STRLCAT 1 #endif -- cgit v1.1