From 094ad8b9bf42f7d9bc3539fb98cf97c5abeacf9a Mon Sep 17 00:00:00 2001 From: Shaun Amott Date: Sat, 23 Dec 2006 15:29:34 +0000 Subject: - Fix build on FreeBSD 4.x. PR: ports/106911 Submitted by: Daniel Roethlisberger (maintainer) --- security/nmap/files/patch-tcpip.cc | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 security/nmap/files/patch-tcpip.cc (limited to 'security/nmap/files/patch-tcpip.cc') 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()); -- cgit v1.2.3