lib/pktanon: add <unistd.h> for modern compilers

USE_DOS2UNIX had to be set in order to apply the patch.

Approved by:	portmgr (bapt, implicit)
This commit is contained in:
John Marino 2013-10-01 18:02:36 +00:00
parent aeeb855c1b
commit 1794478b8b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=328977
2 changed files with 11 additions and 0 deletions

View File

@ -12,6 +12,7 @@ COMMENT= Network trace anonymizer
LIB_DEPENDS= boost_regex:${PORTSDIR}/devel/boost-libs \
xerces-c.3:${PORTSDIR}/textproc/xerces-c3
USE_DOS2UNIX= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib -lboost_system

View File

@ -0,0 +1,10 @@
--- src/Timer.cpp.orig 2013-10-01 17:57:00.000000000 +0000
+++ src/Timer.cpp
@@ -16,6 +16,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//
+#include <unistd.h>
#include "Timer.h"
Timer::Timer ()