Build it only on UN*X; build the generic version of pcap_lookupdev(),
however, even on Windows if we don't have packet.dll.
pcap_freealldevs(alldevs);
return (ret);
}
+#endif /* !defined(HAVE_PACKET32) && !defined(MSDOS) */
+#if !defined(_WIN32) && !defined(MSDOS)
/*
* We don't just fetch the entire list of devices, search for the
* particular device, and use its first IPv4 address, as that's too
*netp &= *maskp;
return (0);
}
-#endif
+#endif /* !defined(_WIN32) && !defined(MSDOS) */
#ifdef HAVE_REMOTE
#include "pcap-rpcap.h"