ETHER: Fix support on OSX so that builds will succeed when building network capable simulators and libpcap development components are not available but TUN/TAP components are available.
This commit is contained in:
parent
55822918a5
commit
5d82b9a960
1 changed files with 5 additions and 5 deletions
10
sim_ether.c
10
sim_ether.c
|
@ -890,17 +890,17 @@ const char *eth_capabilities(void)
|
|||
":UDP";
|
||||
}
|
||||
|
||||
#if (defined (xBSD) || defined (__APPLE__)) && (defined (HAVE_TAP_NETWORK) || defined (HAVE_PCAP_NETWORK))
|
||||
#include <sys/ioctl.h>
|
||||
#include <net/bpf.h>
|
||||
#endif
|
||||
|
||||
#if defined (HAVE_PCAP_NETWORK)
|
||||
/*============================================================================*/
|
||||
/* WIN32, Linux, and xBSD routines use WinPcap and libpcap packages */
|
||||
/* OpenVMS Alpha uses a WinPcap port and an associated execlet */
|
||||
/*============================================================================*/
|
||||
|
||||
#if defined (xBSD) || defined(__APPLE__)
|
||||
#include <sys/ioctl.h>
|
||||
#include <net/bpf.h>
|
||||
#endif /* xBSD */
|
||||
|
||||
#include <pcap.h>
|
||||
#include <string.h>
|
||||
#else
|
||||
|
|
Loading…
Add table
Reference in a new issue