aboutsummaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-02 02:37:32 +0000
committerYang Tse <yangsita@gmail.com>2009-05-02 02:37:32 +0000
commit9137e717b04644592b9b527839470337fdd9f44d (patch)
treee7b9af9f3d06915f4900238ff4f5a077fb05810b /packages
parent80186aa7f44ed5155665d96336b508403b3d4a03 (diff)
Use build-time configured curl_socklen_t instead of socklen_t
Diffstat (limited to 'packages')
-rw-r--r--packages/OS400/os400sys.c8
-rw-r--r--packages/vms/config-vms.h5
2 files changed, 5 insertions, 8 deletions
diff --git a/packages/OS400/os400sys.c b/packages/OS400/os400sys.c
index 73e13fda0..05db5c27f 100644
--- a/packages/OS400/os400sys.c
+++ b/packages/OS400/os400sys.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -237,9 +237,9 @@ buffer_undef(localkey_t key, long size)
int
-Curl_getnameinfo_a(const struct sockaddr * sa, socklen_t salen,
- char * nodename, socklen_t nodenamelen,
- char * servname, socklen_t servnamelen,
+Curl_getnameinfo_a(const struct sockaddr * sa, curl_socklen_t salen,
+ char * nodename, curl_socklen_t nodenamelen,
+ char * servname, curl_socklen_t servnamelen,
int flags)
{
diff --git a/packages/vms/config-vms.h b/packages/vms/config-vms.h
index 646ee9921..88be0466f 100644
--- a/packages/vms/config-vms.h
+++ b/packages/vms/config-vms.h
@@ -25,9 +25,6 @@
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#define TIME_WITH_SYS_TIME 1
-/* Type to use in place of socklen_t when system does not provide it. */
-#define socklen_t size_t
-
/* The number of bytes in a long double. */
#define SIZEOF_LONG_DOUBLE 8
@@ -287,7 +284,7 @@
#define GETNAMEINFO_TYPE_ARG1 struct sockaddr *
/* Define to the type of arg 2 for getnameinfo. */
-#define GETNAMEINFO_TYPE_ARG2 socklen_t
+#define GETNAMEINFO_TYPE_ARG2 unsigned int
/* Define to the type of args 4 and 6 for getnameinfo. */
#define GETNAMEINFO_TYPE_ARG46 size_t