summaryrefslogtreecommitdiff
path: root/configure.com
diff options
context:
space:
mode:
authorCraig A. Berry <craigberry@mac.com>2015-07-11 22:37:56 -0500
committerCraig A. Berry <craigberry@mac.com>2015-07-12 08:32:01 -0500
commit931a625beed2a34b7d28dca23d41b17e658509d5 (patch)
tree1e7edeaf2bef5a90569960dd42df630cd75ff95d /configure.com
parentba4fc2b447d5c04e1ada54027c446d03452dcb25 (diff)
downloadperl-931a625beed2a34b7d28dca23d41b17e658509d5.tar.gz
Use CRTL getlogin and getlogin_r on VMS.
The CRTL has supplied getlogin since v7.0, so let's not use the home-made one anymore. Plus the CRTL als has a reentrant version, so we'll use that under threads.
Diffstat (limited to 'configure.com')
-rw-r--r--configure.com9
1 files changed, 7 insertions, 2 deletions
diff --git a/configure.com b/configure.com
index efa3390f44..2d3dc55f7f 100644
--- a/configure.com
+++ b/configure.com
@@ -6861,7 +6861,7 @@ $ WC "d_getgrnam_r='" + d_getgrnam_r + "'"
$ WC "d_gethostbyaddr_r='undef'"
$ WC "d_gethostbyname_r='undef'"
$ WC "d_gethostent_r='undef'"
-$ WC "d_getlogin_r='undef'"
+$ WC "d_getlogin_r='define'"
$ WC "d_getnetbyaddr_r='undef'"
$ WC "d_getnetbyname_r='undef'"
$ WC "d_getnetent_r='undef'"
@@ -6910,7 +6910,12 @@ $ WC "getgrnam_r_proto='" + getgrnam_r_proto + "'"
$ WC "gethostbyaddr_r_proto='0'"
$ WC "gethostbyname_r_proto='0'"
$ WC "gethostent_r_proto='0'"
-$ WC "getlogin_r_proto='0'"
+$ IF use_threads
+$ THEN
+$ WC "getlogin_r_proto='REENTRANT_PROTO_I_BW'"
+$ ELSE
+$ WC "getlogin_r_proto='0'"
+$ ENDIF
$ WC "getnetbyaddr_r_proto='0'"
$ WC "getnetbyname_r_proto='0'"
$ WC "getnetent_r_proto='0'"