summaryrefslogtreecommitdiff
path: root/configure.com
diff options
context:
space:
mode:
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-10-21 20:04:37 +0100
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>2017-10-21 20:04:37 +0100
commitb961752cf64eb09f62d550c34bc311c4447339c7 (patch)
tree62271688fab46bac0493e0d2a429b5c1fc790d28 /configure.com
parent7e03b2e3e32ae079ac0c7a5d9698994cdf45ae35 (diff)
downloadperl-b961752cf64eb09f62d550c34bc311c4447339c7.tar.gz
Probe for strnlen on VMS
Diffstat (limited to 'configure.com')
-rw-r--r--configure.com20
1 files changed, 19 insertions, 1 deletions
diff --git a/configure.com b/configure.com
index fd569ddeff..4296bf4aa2 100644
--- a/configure.com
+++ b/configure.com
@@ -4257,6 +4257,24 @@ $ tmp = "memrchr"
$ GOSUB inlibc
$ d_memrchr = tmp
$!
+$! Check for strnlen
+$!
+$ OS
+$ WS "#if defined(__DECC) || defined(__DECCXX)"
+$ WS "#include <stdlib.h>"
+$ WS "#endif"
+$ WS "#include <string.h>"
+$ WS "int main()"
+$ WS "{"
+$ WS "size_t len;"
+$ WS "len = strnlen(""foot"", 3);"
+$ WS "exit(0);"
+$ WS "}"
+$ CS
+$ tmp = "strnlen"
+$ GOSUB inlibc
+$ d_strnlen = tmp
+$!
$! Check for strtoull
$!
$ OS
@@ -6400,7 +6418,7 @@ $ WC "d_strcoll='" + d_strcoll + "'"
$ WC "d_strftime='define'"
$ WC "d_strlcat='undef'"
$ WC "d_strlcpy='undef'"
-$ WC "d_strnlen='undef'"
+$ WC "d_strnlen='" + d_strnlen + "'"
$ WC "d_strtod='define'"
$ WC "d_strtol='define'"
$ WC "d_strtold='" + d_strtold + "'"