aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorClaes Nästén <pekdon@gmail.com>2021-12-06 07:49:15 +0100
committerClaes Nästén <pekdon@gmail.com>2021-12-06 17:34:26 +0100
commit8f1fdbc54a873abc7375c785b2b6ee5440910de2 (patch)
tree3d2d70542b1b87a48d56252c25d6c0b15db83b41 /config
parent8fdf1b265d982b80bfa8e6d98374514ece20a03e (diff)
downloadrneovim-8f1fdbc54a873abc7375c785b2b6ee5440910de2.tar.gz
rneovim-8f1fdbc54a873abc7375c785b2b6ee5440910de2.tar.bz2
rneovim-8f1fdbc54a873abc7375c785b2b6ee5440910de2.zip
fix: add STRNLEN compatability macro
Older SunOS systems come without strnlen, add STRNLEN macro in line with the other str* compat macros.
Diffstat (limited to 'config')
-rw-r--r--config/CMakeLists.txt1
-rw-r--r--config/config.h.in1
2 files changed, 2 insertions, 0 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt
index 613475b00d..30f08c5297 100644
--- a/config/CMakeLists.txt
+++ b/config/CMakeLists.txt
@@ -45,6 +45,7 @@ check_function_exists(readlink HAVE_READLINK)
check_function_exists(setpgid HAVE_SETPGID)
check_function_exists(setsid HAVE_SETSID)
check_function_exists(sigaction HAVE_SIGACTION)
+check_function_exists(strnlen HAVE_STRNLEN)
check_function_exists(strcasecmp HAVE_STRCASECMP)
check_function_exists(strncasecmp HAVE_STRNCASECMP)
check_function_exists(strptime HAVE_STRPTIME)
diff --git a/config/config.h.in b/config/config.h.in
index 27a28116af..b0635fb52b 100644
--- a/config/config.h.in
+++ b/config/config.h.in
@@ -30,6 +30,7 @@
#cmakedefine HAVE_SETPGID
#cmakedefine HAVE_SETSID
#cmakedefine HAVE_SIGACTION
+#cmakedefine HAVE_STRNLEN
#cmakedefine HAVE_STRCASECMP
#cmakedefine HAVE_STRINGS_H
#cmakedefine HAVE_STRNCASECMP