diff options
author | Shaun Amott <shaun@FreeBSD.org> | 2006-12-23 15:29:34 +0000 |
---|---|---|
committer | Shaun Amott <shaun@FreeBSD.org> | 2006-12-23 15:29:34 +0000 |
commit | 094ad8b9bf42f7d9bc3539fb98cf97c5abeacf9a (patch) | |
tree | 25df0ead00ed98f59cd3f4bbb590075ddec13d87 /security/nmap/files/patch-tcpip.cc | |
parent | Fix overlong entry in make config (diff) |
- Fix build on FreeBSD 4.x.
PR: ports/106911
Submitted by: Daniel Roethlisberger <daniel@roe.ch> (maintainer)
Notes
Notes:
svn path=/head/; revision=180605
Diffstat (limited to 'security/nmap/files/patch-tcpip.cc')
-rw-r--r-- | security/nmap/files/patch-tcpip.cc | 20 |
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()); |