mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-05 06:27:37 +00:00
f1405f0ddc
was conflicting with C++ headers, leading to the following errors: In file included from /usr/include/c++/4.2/iostream:45, from ../include/XmlFileWriter.h:36, from pflogx.cpp:36: /usr/include/c++/4.2/ostream:566:47: error: macro "flush" passed 2 arguments, but takes just 1 This header was required before PF_* enums were moved to <netpfil/pf/pf.h>, which applies to all supported versions of FreeBSD. Thus, do not #include offending and nowadays useless header file, only #include <netpfil/pf/pf.h> (which is #included by <net/pfvar.h>) when its definitions are needed. Tested on: i386, amd64, powerpc, sparc64
11 lines
209 B
C++
11 lines
209 B
C++
--- src/LogEntryParser.cpp.orig 2006-04-25 19:22:42 UTC
|
|
+++ src/LogEntryParser.cpp
|
|
@@ -35,6 +35,7 @@
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <arpa/inet.h>
|
|
+#include <netpfil/pf/pf.h>
|
|
|
|
|
|
|