openbsd-ports/net/nmap/patches/patch-tcpip_cc
okan bbb9a832a8 - update to 4.53 from Giovanni Bechis (MAINTAINER)
- re-work port from FLAVORS to MULTI_PACKAGES (-main, -zenmap)

lots of feedback and help from kili@, merdely@ and Giovanni

ok merdely@ kili@
2008-01-25 01:21:17 +00:00

13 lines
525 B
Plaintext

$OpenBSD: patch-tcpip_cc,v 1.6 2008/01/25 01:21:17 okan Exp $
--- tcpip.cc.orig Tue Nov 27 00:44:20 2007
+++ tcpip.cc Tue Dec 18 14:22:41 2007
@@ -2081,7 +2081,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());