summaryrefslogtreecommitdiff
path: root/security/nmap/files/patch-tcpip.cc
diff options
context:
space:
mode:
Diffstat (limited to 'security/nmap/files/patch-tcpip.cc')
-rw-r--r--security/nmap/files/patch-tcpip.cc20
1 files changed, 20 insertions, 0 deletions
diff --git a/security/nmap/files/patch-tcpip.cc b/security/nmap/files/patch-tcpip.cc
new file mode 100644
index 000000000000..d4233a62e90a
--- /dev/null
+++ b/security/nmap/files/patch-tcpip.cc
@@ -0,0 +1,20 @@
+--- tcpip.cc.orig Fri Dec 8 04:01:19 2006
++++ tcpip.cc Mon Dec 18 15:48:46 2006
+@@ -1959,7 +1959,7 @@
+
+ // Returns whether the system supports pcap_get_selectable_fd() properly
+ bool pcap_selectable_fd_valid() {
+-#if defined(WIN32) || defined(MACOSX)
++#if defined(WIN32) || defined(MACOSX) || (defined(FREEBSD) && (OSVERSION < 500000))
+ return false;
+ #endif
+ return true;
+@@ -1972,7 +1972,7 @@
+ 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(FREEBSD) && (OSVERSION < 500000))
+ return -1;
+ #else
+ assert(pcap_selectable_fd_valid());