From: Maxim Mamontov Date: Sun, 25 Jan 2015 18:23:17 +0000 (+0200) Subject: Added necessary headers in netlink/nfq checks. X-Git-Tag: 2.409~200 X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/97e7a4e6622ddb09eec102ba2f16e0ad9ba66b7f?ds=inline Added necessary headers in netlink/nfq checks. --- diff --git a/projects/stargazer/build b/projects/stargazer/build index 488836cb..f8fb7363 100755 --- a/projects/stargazer/build +++ b/projects/stargazer/build @@ -346,7 +346,7 @@ else fi printf "Checking for -lnfnetlink... " -printf "#include \nint main() { return 0; }\n" > build_check.c +printf "#include \n#include \n#include \nint main() { return 0; }\n" > build_check.c $CXX $CXXFLAGS $LDFLAGS build_check.c -lnfnetlink -o fake > /dev/null 2> /dev/null if [ $? != 0 ] then @@ -359,7 +359,7 @@ fi rm -f fake printf "Checking for -lnetfilter_queue... " -printf "#include \nint main() { return 0; }\n" > build_check.c +printf "#include \n#include \nint main() { return 0; }\n" > build_check.c $CXX $CXXFLAGS $LDFLAGS build_check.c -lnetfilter_queue -o fake > /dev/null 2> /dev/null if [ $? != 0 ] then