diff options
author | Brent Cook <bcook@openbsd.org> | 2014-07-27 06:11:56 -0500 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2014-07-28 07:07:23 -0500 |
commit | 0a74a4d4648f8655ad4862f28d995fcf2865b3b2 (patch) | |
tree | e59f4c643104f98fe504604e590f458edbb8fd24 /configure.ac.tpl | |
parent | fb67b92eb2bf94816facee5469a7015101b3a07e (diff) | |
download | portable-0a74a4d4648f8655ad4862f28d995fcf2865b3b2.tar.gz portable-0a74a4d4648f8655ad4862f28d995fcf2865b3b2.tar.bz2 portable-0a74a4d4648f8655ad4862f28d995fcf2865b3b2.zip |
add strndup/strnlen compat functions from OpenBSD
Diffstat (limited to 'configure.ac.tpl')
-rw-r--r-- | configure.ac.tpl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac.tpl b/configure.ac.tpl index 8e85e9b..61476cf 100644 --- a/configure.ac.tpl +++ b/configure.ac.tpl | |||
@@ -64,6 +64,11 @@ AC_CHECK_FUNC(strlcat,[AC_SEARCH_LIBS(strlcat,, [NO_STRLCAT=], | |||
64 | AC_SUBST(NO_STRLCAT) | 64 | AC_SUBST(NO_STRLCAT) |
65 | AM_CONDITIONAL(NO_STRLCAT, test "x$NO_STRLCAT" = "xyes") | 65 | AM_CONDITIONAL(NO_STRLCAT, test "x$NO_STRLCAT" = "xyes") |
66 | 66 | ||
67 | AC_CHECK_FUNC(strndup,[AC_SEARCH_LIBS(strndup,, [NO_STRNDUP=], | ||
68 | [NO_STRNDUP=yes])], [NO_STRNDUP=yes]) | ||
69 | AC_SUBST(NO_STRNDUP) | ||
70 | AM_CONDITIONAL(NO_STRNDUP, test "x$NO_STRNDUP" = "xyes") | ||
71 | |||
67 | AC_CHECK_FUNC(reallocarray,[AC_SEARCH_LIBS(reallocarray,, [NO_REALLOCARRAY=], | 72 | AC_CHECK_FUNC(reallocarray,[AC_SEARCH_LIBS(reallocarray,, [NO_REALLOCARRAY=], |
68 | [NO_REALLOCARRAY=yes])], [NO_REALLOCARRAY=yes]) | 73 | [NO_REALLOCARRAY=yes])], [NO_REALLOCARRAY=yes]) |
69 | AC_SUBST(NO_REALLOCARRAY) | 74 | AC_SUBST(NO_REALLOCARRAY) |