as it turned out they aren't everywhere, and that causes compiles to fail
and then we don't find the proper function call!
#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 *);],[
#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 *);],[
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 *);],[
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,