summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorMartin Matuska <martin@matuska.org>2020-12-08 02:26:52 +0100
committerMartin Matuska <martin@matuska.org>2020-12-08 10:01:14 +0100
commitc581b317cc71f964b2446b5534ebcc07be2f7cab (patch)
tree206fe94d8856b72b4636c8d2559278a9c389f248 /build
parentc6d1d7ceb0661abc488f340c2b089cfe85d039d7 (diff)
downloadlibarchive-c581b317cc71f964b2446b5534ebcc07be2f7cab.tar.gz
Use built-in strnlen on platforms where not available
Fixes #1464
Diffstat (limited to 'build')
-rw-r--r--build/cmake/config.h.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/cmake/config.h.in b/build/cmake/config.h.in
index 6d2fa746..ff629f9c 100644
--- a/build/cmake/config.h.in
+++ b/build/cmake/config.h.in
@@ -959,6 +959,9 @@ typedef uint64_t uintmax_t;
/* Define to 1 if you have the `strchr' function. */
#cmakedefine HAVE_STRCHR 1
+/* Define to 1 if you have the `strnlen' function. */
+#cmakedefine HAVE_STRNLEN 1
+
/* Define to 1 if you have the `strdup' function. */
#cmakedefine HAVE_STRDUP 1