]> git.ipfire.org Git - thirdparty/lldpd.git/blobdiff - configure.ac
compat: add `strnlen()` which may be absent on some older systems
[thirdparty/lldpd.git] / configure.ac
index 8d494fc3ebdfcc84d9ae7099707a8dd52e17b524..1e86355e26c3116897a095c4328b68e4b5306adf 100644 (file)
@@ -93,7 +93,7 @@ lldp_CHECK___PROGNAME
 AC_CONFIG_LIBOBJ_DIR([src/compat])
 AC_FUNC_MALLOC
 AC_FUNC_REALLOC
-AC_REPLACE_FUNCS([strlcpy])
+AC_REPLACE_FUNCS([strlcpy strnlen])
 AC_CHECK_FUNCS([setresuid setresgid])
 
 AC_SEARCH_LIBS([__res_init], resolv bind, AC_DEFINE([HAVE_RES_INIT], 1, [Define to indicate that res_init() exists]),