1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 22:21:29 +00:00

Include <net/if.h> before <net/if_arp.h>.

This may fix some build problems on AIX 5.3.
This commit is contained in:
david
2012-03-07 03:39:11 +00:00
parent 1bcc757d28
commit 941d609eef
2 changed files with 23 additions and 12 deletions

View File

@@ -100,7 +100,6 @@
#include "nbase.h"
#include "portreasons.h"
#include <dnet.h>
#include <net/if_arp.h>
#include "tcpip.h"
#include "NmapOps.h"
#include "Target.h"
@@ -117,6 +116,18 @@
#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>