summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-11-08 14:48:50 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-11-08 14:48:50 +0000
commit6ebac3dc7608b08c943b3b6d7fb47678babe2ddc (patch)
tree226e834672adaec51d4b6730d230e807e0102bbf /acinclude.m4
parent3b976ea9f1aebc27b0133f0a0cb4d517caa2f439 (diff)
downloadcurl-6ebac3dc7608b08c943b3b6d7fb47678babe2ddc.tar.gz
now we make sure that NULL is defined in the gethostbyname_r() compiles
as it turned out they aren't everywhere, and that causes compiles to fail and then we don't find the proper function call!
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index eb0b2c497..2aea0f562 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -335,6 +335,8 @@ AC_DEFUN(CURL_CHECK_GETHOSTBYNAME_R,
#include <string.h>
#include <sys/types.h>
#include <netdb.h>
+#undef NULL
+#define NULL (void *)0
int
gethostbyname_r(const char *, struct hostent *, struct hostent_data *);],[
@@ -350,6 +352,8 @@ gethostbyname_r(NULL, NULL, NULL);],[
#include <string.h>
#include <sys/types.h>
#include <netdb.h>
+#undef NULL
+#define NULL (void *)0
int
gethostbyname_r(const char *,struct hostent *, struct hostent_data *);],[
@@ -363,6 +367,8 @@ gethostbyname_r(NULL, NULL, NULL);],[
AC_TRY_COMPILE([
#include <sys/types.h>
#include <netdb.h>
+#undef NULL
+#define NULL (void *)0
struct hostent *
gethostbyname_r(const char *, struct hostent *, char *, int, int *);],[
@@ -375,6 +381,8 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL);],[
AC_TRY_COMPILE([
#include <sys/types.h>
#include <netdb.h>
+#undef NULL
+#define NULL (void *)0
int
gethostbyname_r(const char *, struct hostent *, char *, size_t,