From 8ec51186dc1d584aff1d77443d97b7c098334850 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Sat, 23 Oct 2010 18:57:25 +0200 Subject: [PATCH] test for strnlen in configure --- config.h.in | 3 +++ configure.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.h.in b/config.h.in index 81bd41e2..bd44ead2 100644 --- a/config.h.in +++ b/config.h.in @@ -55,6 +55,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `strnlen' function. */ +#undef HAVE_STRNLEN + /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR diff --git a/configure.in b/configure.in index 719acbe7..8c2eea6d 100644 --- a/configure.in +++ b/configure.in @@ -44,7 +44,7 @@ AC_TYPE_SSIZE_T # Checks for library functions. AC_FUNC_MALLOC -AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo]) +AC_CHECK_FUNCS([memset select socket strcasecmp strrchr getaddrinfo strnlen]) AC_CONFIG_HEADERS([config.h])