mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
9cd1ef697b
commit
94768d88fa
2 changed files with 1 additions and 12 deletions
|
|
@ -31,6 +31,7 @@ struct ip {
|
|||
/* BSDI needs this to insure the correct struct ip */
|
||||
#undef _IP_VHL
|
||||
|
||||
#include <net/if_arp.h>
|
||||
#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 */
|
||||
#define NETINET_IN_SYSTM_H
|
||||
|
|
|
|||
12
tcpip.cc
12
tcpip.cc
|
|
@ -116,18 +116,6 @@
|
|||
#include <unistd.h>
|
||||
#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
|
||||
#ifndef NETINET_IF_ETHER_H
|
||||
#include <netinet/if_ether.h>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue