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-output.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 security/nmap/files/patch-output.cc (limited to 'security/nmap/files/patch-output.cc') diff --git a/security/nmap/files/patch-output.cc b/security/nmap/files/patch-output.cc new file mode 100644 index 000000000000..7a1d364dfcb9 --- /dev/null +++ b/security/nmap/files/patch-output.cc @@ -0,0 +1,13 @@ +--- output.cc.orig Fri Dec 8 04:01:19 2006 ++++ output.cc Mon Dec 18 15:50:13 2006 +@@ -742,8 +742,8 @@ + case LOG_MACHINE: + case LOG_SKID: + case LOG_XML: +-#ifdef WIN32 +- apcopy = ap; ++#if defined(WIN32) || (defined(FREEBSD) && (OSVERSION < 500000)) ++ apcopy = ap; + #else + va_copy(apcopy, ap); /* Needed in case we need to so a second vnsprintf */ + #endif -- cgit v1.2.3