aboutsummaryrefslogtreecommitdiffstats
path: root/config/user.m4
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2018-12-11 16:01:41 -0800
committerGitHub <[email protected]>2018-12-11 16:01:41 -0800
commit4b702901637ee0be1f654af38c86d0a68593f921 (patch)
treedc8e39ec1bd01b6630e0e822b1a6077b346773f2 /config/user.m4
parenta48cd034c8df96ab751179b0c15bf84c6e178967 (diff)
Check for strlcat and strlcpy
This partially reverts commit 8005ca4 by moving the strlcat() and strlcpy() compatibility implementations back to their original location. In addition, these two functions were added to the AC_CHECK_FUNCS macro. When these functions are available from the C library, HAVE_STRLCAT and HAVE_STRLCPY will be defined and library version used. Otherwise the compatibility version is built. Reviewed-by: Sebastian Gottschall <[email protected]> Reviewed-by: Alek Pinchuk <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Closes #8157 Closes #8202
Diffstat (limited to 'config/user.m4')
-rw-r--r--config/user.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/config/user.m4 b/config/user.m4
index 8c4655719..ca50823d8 100644
--- a/config/user.m4
+++ b/config/user.m4
@@ -21,7 +21,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [
ZFS_AC_TEST_FRAMEWORK
- AC_CHECK_FUNCS([mlockall])
+ AC_CHECK_FUNCS([mlockall strlcat strlcpy])
])
dnl #