aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-09-12 18:54:38 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-09-12 18:54:38 +0300
commit71086c66cee3e6ad1c7a601677ebeead39d64bf7 (patch)
treea6f27b032ba4beb924ada1ed1c2df0dd2b2627e9
parentde58cf32b39f0a996895da62dc82defaaf8fdc3c (diff)
Define HAVE_STRNDUP macro for FreeBSD
-rw-r--r--libpkgconf/config.h9
1 files 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