From 5f29169afce289a60805126b7a5a730c1b5ff65e Mon Sep 17 00:00:00 2001 From: Love Hornquist Astrand Date: Mon, 29 Apr 2013 10:57:03 -0700 Subject: [PATCH] check for strlcpy strlcat --- lib/libedit/config.h.in | 6 ++++++ lib/libedit/configure.ac | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/libedit/config.h.in b/lib/libedit/config.h.in index df59ac317..9fe3a977c 100644 --- a/lib/libedit/config.h.in +++ b/lib/libedit/config.h.in @@ -118,6 +118,12 @@ /* Define to 1 if you have the header file. */ #undef HAVE_STRING_H +/* Define to 1 if you have the `strlcat' function. */ +#undef HAVE_STRLCAT + +/* Define to 1 if you have the `strlcpy' function. */ +#undef HAVE_STRLCPY + /* Define to 1 if you have the `strrchr' function. */ #undef HAVE_STRRCHR diff --git a/lib/libedit/configure.ac b/lib/libedit/configure.ac index 08591bab1..5e164b57b 100644 --- a/lib/libedit/configure.ac +++ b/lib/libedit/configure.ac @@ -74,7 +74,7 @@ AC_PROG_GCC_TRADITIONAL #AC_FUNC_REALLOC AC_TYPE_SIGNAL AC_FUNC_STAT -AC_CHECK_FUNCS([endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strerror strrchr strstr strtol issetugid wcsdup]) +AC_CHECK_FUNCS([endpwent isascii memchr memset re_comp regcomp strcasecmp strchr strcspn strdup strlcpy strlcat strerror strrchr strstr strtol issetugid wcsdup]) EL_GETPW_R_POSIX EL_GETPW_R_DRAFT