From 4258e943a15013952afd67354800ec6199af7050 Mon Sep 17 00:00:00 2001 From: Patrick Monnerat Date: Thu, 11 Feb 2010 18:49:06 +0000 Subject: _ Make it compilable again on OS400. _ Upgrade OS400 EBCDIC wrappers for new options. _ Upgrade ILE/RPG bindings to current state. --- lib/config-os400.h | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) (limited to 'lib') 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 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 -- cgit v1.2.3