--- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ man_MANS=peerguardnf.1 mybin_PROGRAMS = peerguardnf pgtext peerguardnf_SOURCES=Main.cpp PeerGuard.cpp BlockList.cpp Blocker_Linux.cpp Blocker_BSD.cpp HttpServer.cpp HttpRequest.cpp sha1.cpp pgtext_SOURCES=pgtext.cpp -peerguardnf_LDADD=-lipq -lpthread +peerguardnf_LDADD=-lipq -lnetfilter_queue -lnfnetlink -lpthread pgtext_LDADD=-lncurses -lpthread peerguardnf_LDFLAGS=$(all_includes) -I/usr/include/libipq AM_CPPFLAGS=$(ALL_INCLUDES) -I/usr/include/libipq --- a/Makefile.in +++ b/Makefile.in @@ -72,7 +72,7 @@ man_MANS = peerguardnf.1 mybin_PROGRAMS = peerguardnf pgtext peerguardnf_SOURCES = Main.cpp PeerGuard.cpp BlockList.cpp Blocker_Linux.cpp Blocker_BSD.cpp HttpServer.cpp HttpRequest.cpp sha1.cpp pgtext_SOURCES = pgtext.cpp -peerguardnf_LDADD = -lipq -lpthread +peerguardnf_LDADD = -lipq -lnetfilter_queue -lnfnetlink -lpthread pgtext_LDADD = -lncurses -lpthread peerguardnf_LDFLAGS = $(all_includes) AM_CPPFLAGS = $(ALL_INCLUDES) --- a/Blocker_Linux.cpp +++ b/Blocker_Linux.cpp @@ -22,6 +22,7 @@ #include "PeerGuard.h" +#include #include extern "C" { #include