Missing NETDB_INTERNAL now falls back to -1

This commit is contained in:
Gerhard Rieger 2024-06-21 14:11:56 +02:00
parent 54cbb0bb09
commit efc654f85a
3 changed files with 8 additions and 0 deletions

View file

@ -8,6 +8,9 @@ Porting:
New Linux distributions dislike egrep, fgrep New Linux distributions dislike egrep, fgrep
When NETDB_INTERNAL is not available it should be set to -1.
Thanks to Baruch Siach for sending a patch.
Testing: Testing:
test.sh: lots of corrections and improvements test.sh: lots of corrections and improvements

View file

@ -851,6 +851,8 @@ typedef unsigned long T_sigset;
#if !defined(NETDB_INTERNAL) && defined(h_NETDB_INTERNAL) #if !defined(NETDB_INTERNAL) && defined(h_NETDB_INTERNAL)
# define NETDB_INTERNAL h_NETDB_INTERNAL # define NETDB_INTERNAL h_NETDB_INTERNAL
#elif !defined(NETDB_INTERNAL)
# define NETDB_INTERNAL (-1)
#endif #endif
#ifndef INET_ADDRSTRLEN #ifndef INET_ADDRSTRLEN

View file

@ -391,6 +391,9 @@ int xiogetaddrinfo(const char *node, const char *service,
} }
} }
#else
Error("no resolver function available");
return STAT_NORETRY;
#endif #endif
if (numnode) free(numnode); if (numnode) free(numnode);