summaryrefslogtreecommitdiff
path: root/lib/config-os400.h
diff options
context:
space:
mode:
authorPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2010-02-11 18:49:06 +0000
committerPatrick Monnerat <Patrick.Monnerat@datasphere.ch>2010-02-11 18:49:06 +0000
commit4258e943a15013952afd67354800ec6199af7050 (patch)
treef908f0b6dd16a3e25dcf1ceab295d11d24bf3067 /lib/config-os400.h
parentc3b87d1b4f33e90f828043ca7a2c63018ca26457 (diff)
downloadcurl-4258e943a15013952afd67354800ec6199af7050.tar.gz
_ Make it compilable again on OS400.
_ Upgrade OS400 EBCDIC wrappers for new options. _ Upgrade ILE/RPG bindings to current state.
Diffstat (limited to 'lib/config-os400.h')
-rw-r--r--lib/config-os400.h23
1 files changed, 10 insertions, 13 deletions
diff --git a/lib/config-os400.h b/lib/config-os400.h
index 7a303fdbb..ac75db2a2 100644
--- a/lib/config-os400.h
+++ b/lib/config-os400.h
@@ -24,14 +24,18 @@
/* Define if you have the gethostbyaddr_r() function with 8 arguments */
#undef HAVE_GETHOSTBYADDR_R_8
-/* Define if you have the gethostbyname_r() function with 3 arguments */
-#define HAVE_GETHOSTBYNAME_R_3
-
-/* Define if you have the gethostbyname_r() function with 5 arguments */
+/* OS400 supports a 3-argument ASCII version of gethostbyaddr_r(), but its
+ * prototype is incompatible with the "standard" one (1st argument is not
+ * const). However, getaddrinfo() is supported (ASCII version defined as
+ * a local wrapper in setup-os400.h) in a threadsafe way: we can then
+ * configure getaddrinfo() as such and get rid of gethostbyname_r() without
+ * loss of threadsafeness. */
+#undef HAVE_GETHOSTBYNAME_R
+#undef HAVE_GETHOSTBYNAME_R_3
#undef HAVE_GETHOSTBYNAME_R_5
-
-/* Define if you have the gethostbyname_r() function with 6 arguments */
#undef HAVE_GETHOSTBYNAME_R_6
+#define HAVE_GETADDRINFO
+#define HAVE_GETADDRINFO_THREADSAFE
/* Define if you need the _REENTRANT define for some functions */
#undef NEED_REENTRANT
@@ -78,10 +82,6 @@
/* Define if you have the <fcntl.h> header file. */
#define HAVE_FCNTL_H
-/* Define if getaddrinfo exists and works */
-/* OS400 has no ASCII version of this procedure: wrapped in setup-os400.h. */
-#define HAVE_GETADDRINFO
-
/* Define if you have the `geteuid' function. */
#define HAVE_GETEUID
@@ -91,9 +91,6 @@
/* Define if you have the `gethostbyaddr_r' function. */
#define HAVE_GETHOSTBYADDR_R
-/* Define if you have the `gethostbyname_r' function. */
-#define HAVE_GETHOSTBYNAME_R
-
/* Define if you have the `gethostname' function. */
#define HAVE_GETHOSTNAME