From 81557849909e4833a075f7be104031d751a31357 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 27 Jan 2013 20:26:07 +0100 Subject: string_util: add fallback for strnlen() Usually, when strndup() is not available, strndup() isn't either, because both are POSIX 2008. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index a15733f1..073141d7 100644 --- a/configure.ac +++ b/configure.ac @@ -136,7 +136,7 @@ AC_SEARCH_LIBS([gethostbyname], [nsl]) AC_CHECK_FUNCS(pipe2 accept4 eventfd) -AC_CHECK_FUNCS(strndup) +AC_CHECK_FUNCS(strnlen strndup) AC_SEARCH_LIBS([exp], [m],, [AC_MSG_ERROR([exp() not found])]) -- cgit v1.2.3