openbsd-ports/net/nmap/patches/patch-tcpip_cc

13 lines
525 B
Plaintext

$OpenBSD: patch-tcpip_cc,v 1.9 2008/09/17 18:09:54 kili Exp $
--- tcpip.cc.orig Thu Sep 4 16:41:59 2008
+++ tcpip.cc Thu Sep 11 15:32:17 2008
@@ -2244,7 +2244,7 @@ bool pcap_selectable_fd_valid() {
results. If you just want to test whether the function is supported,
use pcap_selectable_fd_valid() instead. */
int my_pcap_get_selectable_fd(pcap_t *p) {
-#if defined(WIN32) || defined(MACOSX)
+#if defined(WIN32) || defined(MACOSX) || defined __OpenBSD__
return -1;
#else
assert(pcap_selectable_fd_valid());