summaryrefslogtreecommitdiff
path: root/os/access.c
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2013-08-28 17:15:03 +0200
committerJulien Cristau <jcristau@debian.org>2013-10-05 15:26:55 +0200
commitccbe17b1c6da1ad9d085fc8133cdd15dc7004a4a (patch)
tree343111de5b1862f98938d86e604fb0dff81a7056 /os/access.c
parentc079b8e675dd2762c9e07fe5d8c07612299dceb7 (diff)
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>
Diffstat (limited to 'os/access.c')
-rw-r--r--os/access.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/os/access.c b/os/access.c
index 88a44d9e5..6d991b362 100644
--- a/os/access.c
+++ b/os/access.c
@@ -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
@@ -461,10 +465,6 @@ DefineSelf(int fd)
#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)
{