From 5d82b9a9604de219cbd1fb17f2f8ce54a8369b06 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Fri, 14 Feb 2014 06:43:40 -0800 Subject: [PATCH] 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. --- sim_ether.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sim_ether.c b/sim_ether.c index 24614376..40abf8d6 100644 --- a/sim_ether.c +++ b/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 +#include +#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 -#include -#endif /* xBSD */ - #include #include #else