From 2793689cc2eda675ec11a3a0cfed5e470fa83ee3 Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 20 Oct 2009 15:40:13 -0700 Subject: Add implementation of strnlen for systems without this function Signed-off-by: Yaakov Selkowitz Signed-off-by: Jeremy Huddleston --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f665380..3b28926 100644 --- a/configure.ac +++ b/configure.ac @@ -39,6 +39,9 @@ AC_PROG_INSTALL # Check for functional strnlen AC_USE_SYSTEM_EXTENSIONS AC_FUNC_STRNLEN +if test "x$ac_cv_func_strnlen_working" = xyes; then + AC_DEFINE(HAVE_STRNLEN, 1, [Define to 1 if you have a working strnlen function.]) +fi XORG_DEFAULT_OPTIONS -- cgit v1.2.3