aboutsummaryrefslogtreecommitdiff
path: root/ares
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-06 13:58:41 +0000
committerYang Tse <yangsita@gmail.com>2009-05-06 13:58:41 +0000
commit77bb536542358b71b62bc245b2d00dfcd1afe7d2 (patch)
tree4944b6db7b09152ec08541589523b36aca2b1ca1 /ares
parent7c6e0d5981bee90456de8ab10b6f0d5a90637a61 (diff)
fIX *__SOCKLEN_T definitions for OS400 and generic GCC targets
Diffstat (limited to 'ares')
-rw-r--r--ares/ares_build.h.dist12
1 files changed, 8 insertions, 4 deletions
diff --git a/ares/ares_build.h.dist b/ares/ares_build.h.dist
index d88a65cda..462be557a 100644
--- a/ares/ares_build.h.dist
+++ b/ares/ares_build.h.dist
@@ -168,6 +168,10 @@
# define CARES_SIZEOF_LONG 4
# define CARES_TYPEOF_ARES_SOCKLEN_T FIXME
# define CARES_SIZEOF_ARES_SOCKLEN_T -1
+# 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(__MVS__)
@@ -217,13 +221,13 @@
#elif defined(__GNUC__)
# if defined(__i386__) || defined(__ppc__)
# define CARES_SIZEOF_LONG 4
-# define CARES_TYPEOF_ARES_SOCKLEN_T FIXME
-# define CARES_SIZEOF_ARES_SOCKLEN_T -1
# elif defined(__x86_64__) || defined(__ppc64__)
# 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
#else
# error "Unknown non-configure build target!"