aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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