summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-10-20 15:40:13 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2009-10-20 20:11:42 -0700
commit2793689cc2eda675ec11a3a0cfed5e470fa83ee3 (patch)
treed73e5233f60a73cb4419f0f61568b68b3ac55975 /configure.ac
parent1839eabbdd697039a264fe7ebb3f4d26f08ddabe (diff)
Add implementation of strnlen for systems without this function
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net> Signed-off-by: Jeremy Huddleston <jeremyhu@freedesktop.org>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac3
1 files changed, 3 insertions, 0 deletions
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