mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 15:48:49 -05:00
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!
This commit is contained in:
parent
3b976ea9f1
commit
6ebac3dc76
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user