mirror of
https://github.com/simh/simh.git
synced 2026-01-14 07:39:29 +00:00
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
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…
x
Reference in New Issue
Block a user