1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-22 15:39:03 +00:00

Revert "Include <net/if.h> before <net/if_arp.h>" in netutil.cc.

This seems be broken on AIX 5.3.
This commit is contained in:
david
2012-03-12 23:00:04 +00:00
parent 523dbc609a
commit 2a71786fb9

View File

@@ -116,17 +116,6 @@
#if HAVE_SYS_SOCKIO_H
#include <sys/sockio.h> /* SIOCGIFCONF for Solaris */
#endif
#if HAVE_NET_IF_H
#ifndef NET_IF_H /* This guarding is needed for at least some versions of OpenBSD */
#include <net/if.h>
#define NET_IF_H
#endif
#endif
#ifndef NETINET_IP_H /* This guarding is needed for at least some versions of OpenBSD */
#include <netinet/ip.h>
#define NETINET_IP_H
#endif
#include <net/if_arp.h>
/* Define CMSG_* symbols for Solaris 9 and earlier. See
@@ -163,6 +152,17 @@
#include "netutil.h"
#if HAVE_NET_IF_H
#ifndef NET_IF_H /* This guarding is needed for at least some versions of OpenBSD */
#include <net/if.h>
#define NET_IF_H
#endif
#endif
#ifndef NETINET_IP_H /* This guarding is needed for at least some versions of OpenBSD */
#include <netinet/ip.h>
#define NETINET_IP_H
#endif
#if HAVE_SYS_RESOURCE_H
#include <sys/resource.h>
#endif