mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Include <net/if_arp.h> from struct_ip.h.
This may be a better way to solve AIX build problems; anyway tcpip.cc didn't build for me on Solaris.
This commit is contained in:
@@ -31,6 +31,7 @@ struct ip {
|
|||||||
/* BSDI needs this to insure the correct struct ip */
|
/* BSDI needs this to insure the correct struct ip */
|
||||||
#undef _IP_VHL
|
#undef _IP_VHL
|
||||||
|
|
||||||
|
#include <net/if_arp.h>
|
||||||
#ifndef NETINET_IN_SYSTM_H /* This guarding is needed for at least some versions of OpenBSD */
|
#ifndef NETINET_IN_SYSTM_H /* This guarding is needed for at least some versions of OpenBSD */
|
||||||
#include <netinet/in_systm.h> /* defines n_long needed for netinet/ip.h */
|
#include <netinet/in_systm.h> /* defines n_long needed for netinet/ip.h */
|
||||||
#define NETINET_IN_SYSTM_H
|
#define NETINET_IN_SYSTM_H
|
||||||
|
|||||||
12
tcpip.cc
12
tcpip.cc
@@ -116,18 +116,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#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>
|
|
||||||
|
|
||||||
#if HAVE_NETINET_IF_ETHER_H
|
#if HAVE_NETINET_IF_ETHER_H
|
||||||
#ifndef NETINET_IF_ETHER_H
|
#ifndef NETINET_IF_ETHER_H
|
||||||
#include <netinet/if_ether.h>
|
#include <netinet/if_ether.h>
|
||||||
|
|||||||
Reference in New Issue
Block a user