summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-04 17:05:25 +0000
committerYang Tse <yangsita@gmail.com>2009-05-04 17:05:25 +0000
commit8c08ecfcbfc6a818c85ded27d15b0e1a2c5b3137 (patch)
treeba1f93fd338830bc904078cce06e51b3ed708395 /include
parentb9920bdd0ea395f2136b6e44b9b41d951af55850 (diff)
downloadcurl-8c08ecfcbfc6a818c85ded27d15b0e1a2c5b3137.tar.gz
fIX *__SOCKLEN_T definitions for MVS and 370 targets
Diffstat (limited to 'include')
-rw-r--r--include/curl/curlbuild.h.dist24
1 files changed, 20 insertions, 4 deletions
diff --git a/include/curl/curlbuild.h.dist b/include/curl/curlbuild.h.dist
index 3f55979c6..ba077925e 100644
--- a/include/curl/curlbuild.h.dist
+++ b/include/curl/curlbuild.h.dist
@@ -438,9 +438,11 @@
# define CURL_SUFFIX_CURL_OFF_T L
# define CURL_SUFFIX_CURL_OFF_TU UL
# endif
+# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
+# define CURL_SIZEOF_CURL_SOCKLEN_T 4
+# define CURL_PULL_SYS_TYPES_H 1
+# define CURL_PULL_SYS_SOCKET_H 1
# endif
-# define CURL_TYPEOF_CURL_SOCKLEN_T FIXME
-# define CURL_SIZEOF_CURL_SOCKLEN_T -1
#elif defined(__370__)
# if defined(__IBMC__) || defined(__IBMCPP__)
@@ -474,9 +476,11 @@
# define CURL_SUFFIX_CURL_OFF_T L
# define CURL_SUFFIX_CURL_OFF_TU UL
# endif
+# define CURL_TYPEOF_CURL_SOCKLEN_T socklen_t
+# define CURL_SIZEOF_CURL_SOCKLEN_T 4
+# define CURL_PULL_SYS_TYPES_H 1
+# define CURL_PULL_SYS_SOCKET_H 1
# endif
-# define CURL_TYPEOF_CURL_SOCKLEN_T FIXME
-# define CURL_SIZEOF_CURL_SOCKLEN_T -1
#elif defined(TPF)
# define CURL_SIZEOF_LONG 8
@@ -549,6 +553,18 @@
Error Compilation_aborted_Unknown_non_configure_build_target
#endif
+/* CURL_PULL_SYS_TYPES_H is defined above when inclusion of header file */
+/* sys/types.h is required here to properly make type definitions below. */
+#ifdef CURL_PULL_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+
+/* CURL_PULL_SYS_SOCKET_H is defined above when inclusion of header file */
+/* sys/socket.h is required here to properly make type definitions below. */
+#ifdef CURL_PULL_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+
/* Data type definition of curl_socklen_t. */
#ifdef CURL_TYPEOF_CURL_SOCKLEN_T