From 8ee564c216d597c1f26cbd4fc0bdc243fcc3e166 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Tue, 8 Jun 2004 21:21:53 +0000
Subject: [PATCH] Marty Kuhrt's VMS fixes

---
 packages/vms/config-vms.h_with_ssl    |  4 ++++
 packages/vms/config-vms.h_without_ssl |  4 ++++
 src/getpass.c                         | 12 +++++++++++-
 3 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/packages/vms/config-vms.h_with_ssl b/packages/vms/config-vms.h_with_ssl
index 1b66d5e1ff..b9d251f78d 100755
--- a/packages/vms/config-vms.h_with_ssl
+++ b/packages/vms/config-vms.h_with_ssl
@@ -1,6 +1,7 @@
 /* MSK, 02/05/04, Hand edited for trail build on Alpha V7.3, DEC C 6.5-003 */
 /* MSK, 03/09/04, Seems to work for all platforms I've built on so far.    */
 /*      Added HAVE_SYS_IOCTL_H, IOCTL_3_ARGS and SIZEOF_CURL_OFF_T defines */
+/* MSK, 06/04/04, Added HAVE_INET_NTOP                                     */
 
 /* Define cpu-machine-OS */
 #ifdef __ALPHA
@@ -258,3 +259,6 @@
 #else
 #define SIZEOF_CURL_OFF_T 8
 #endif
+
+/* Somewhere around 7.12.0 HAVE_INET_NTOP was introduced. */
+#define HAVE_INET_NTOP 1
diff --git a/packages/vms/config-vms.h_without_ssl b/packages/vms/config-vms.h_without_ssl
index f48163edc5..1b49b5fdde 100755
--- a/packages/vms/config-vms.h_without_ssl
+++ b/packages/vms/config-vms.h_without_ssl
@@ -1,6 +1,7 @@
 /* MSK, 02/05/04, Hand edited for trail build on Alpha V7.3, DEC C 6.5-003 */
 /* MSK, 03/09/04, Seems to work for all platforms I've built on so far.    */
 /*      Added HAVE_SYS_IOCTL_H, IOCTL_3_ARGS and SIZEOF_CURL_OFF_T defines */
+/* MSK, 06/04/04, Added HAVE_INET_NTOP                                     */
 
 /* Define cpu-machine-OS */
 #ifdef __ALPHA
@@ -258,3 +259,6 @@
 #else
 #define SIZEOF_CURL_OFF_T 8
 #endif
+
+/* Somewhere around 7.12.0 HAVE_INET_NTOP was introduced. */
+#define HAVE_INET_NTOP 1
diff --git a/src/getpass.c b/src/getpass.c
index eb210460ec..129430f2e8 100644
--- a/src/getpass.c
+++ b/src/getpass.c
@@ -45,12 +45,22 @@
 #include descrip
 #include starlet
 #include iodef
-#include iosbdef
+/* #include iosbdef */
 char *getpass_r(const char *prompt, char *buffer, size_t buflen)
 {
   long sts;
   short chan;
   struct _iosb iosb;
+  /* MSK, 23-JAN-2004, iosbdef.h wasn't in VAX V7.2 or CC 6.4  */
+  /* distribution so I created this.  May revert back later to */
+  /* struct _iosb iosb;                                        */
+  struct _iosb
+     {
+     short int iosb$w_status; /* status     */
+     short int iosb$w_bcnt;   /* byte count */
+     int       unused;        /* unused     */
+     } iosb;
+
   $DESCRIPTOR(ttdesc, "TT");
 
   buffer[0]='\0';
-- 
GitLab