summaryrefslogtreecommitdiff
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
commit00b2ba7ad4a1814881893cc0fc4d18f7503c8dc3 (patch)
treebf956202ad752081b81abc8bbbb3575d6be4db78
parent68458a15bb227add09cdcb720eb970dfcd4091d0 (diff)
downloadc-ares-00b2ba7ad4a1814881893cc0fc4d18f7503c8dc3.tar.gz
c-ares-00b2ba7ad4a1814881893cc0fc4d18f7503c8dc3.tar.bz2
c-ares-00b2ba7ad4a1814881893cc0fc4d18f7503c8dc3.zip
fIX *__SOCKLEN_T definitions for MVS and 370 targets
-rw-r--r--ares_build.h.dist28
1 files changed, 20 insertions, 8 deletions
diff --git a/ares_build.h.dist b/ares_build.h.dist
index 9f32c8f..d88a65c 100644
--- a/ares_build.h.dist
+++ b/ares_build.h.dist
@@ -174,26 +174,26 @@
# if defined(__IBMC__) || defined(__IBMCPP__)
# if defined(_ILP32)
# define CARES_SIZEOF_LONG 4
-# define CARES_TYPEOF_ARES_SOCKLEN_T FIXME
-# define CARES_SIZEOF_ARES_SOCKLEN_T -1
# elif defined(_LP64)
# define CARES_SIZEOF_LONG 8
-# define CARES_TYPEOF_ARES_SOCKLEN_T FIXME
-# define CARES_SIZEOF_ARES_SOCKLEN_T -1
# endif
+# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t
+# define CARES_SIZEOF_ARES_SOCKLEN_T 4
+# define CARES_PULL_SYS_TYPES_H 1
+# define CARES_PULL_SYS_SOCKET_H 1
# endif
#elif defined(__370__)
# if defined(__IBMC__) || defined(__IBMCPP__)
# if defined(_ILP32)
# define CARES_SIZEOF_LONG 4
-# define CARES_TYPEOF_ARES_SOCKLEN_T FIXME
-# define CARES_SIZEOF_ARES_SOCKLEN_T -1
# elif defined(_LP64)
# define CARES_SIZEOF_LONG 8
-# define CARES_TYPEOF_ARES_SOCKLEN_T FIXME
-# define CARES_SIZEOF_ARES_SOCKLEN_T -1
# endif
+# define CARES_TYPEOF_ARES_SOCKLEN_T socklen_t
+# define CARES_SIZEOF_ARES_SOCKLEN_T 4
+# define CARES_PULL_SYS_TYPES_H 1
+# define CARES_PULL_SYS_SOCKET_H 1
# endif
#elif defined(TPF)
@@ -230,6 +230,18 @@
Error Compilation_aborted_Unknown_non_configure_build_target
#endif
+/* CARES_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 CARES_PULL_SYS_TYPES_H
+# include <sys/types.h>
+#endif
+
+/* CARES_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 CARES_PULL_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+
/* Data type definition of ares_socklen_t. */
#ifdef CARES_TYPEOF_ARES_SOCKLEN_T