os: move <arpa/inet.h> for any !win32 system
It is needed in IPv6 configurations (for inet_pton) also when SIOCGIFCONF is not defined. Signed-off-by: Pino Toscano <toscano.pino@tiscali.it> Acked-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Signed-off-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
parent
c079b8e675
commit
ccbe17b1c6
|
@ -163,6 +163,10 @@ SOFTWARE.
|
|||
/* #endif */
|
||||
#endif
|
||||
|
||||
#if defined(IPv6) && defined(AF_INET6)
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#endif /* WIN32 */
|
||||
|
||||
#define X_INCLUDE_NETDB_H
|
||||
|
@ -460,10 +464,6 @@ DefineSelf(int fd)
|
|||
#define ifraddr_size(a) (sizeof (a))
|
||||
#endif
|
||||
|
||||
#if defined(IPv6) && defined(AF_INET6)
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
#if defined(IPv6) && defined(AF_INET6)
|
||||
static void
|
||||
in6_fillscopeid(struct sockaddr_in6 *sin6)
|
||||
|
|
Loading…
Reference in New Issue
Block a user