mirror of
https://repo.or.cz/socat.git
synced 2024-12-22 07:22:34 +00:00
Missing NETDB_INTERNAL now falls back to -1
This commit is contained in:
parent
54cbb0bb09
commit
efc654f85a
3 changed files with 8 additions and 0 deletions
3
CHANGES
3
CHANGES
|
@ -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
|
||||||
|
|
||||||
|
|
2
compat.h
2
compat.h
|
@ -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
|
||||||
|
|
3
xio-ip.c
3
xio-ip.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue