]> git.stg.codes - stg.git/commitdiff
Added necessary headers in netlink/nfq checks.
authorMaxim Mamontov <faust.madf@gmail.com>
Sun, 25 Jan 2015 18:23:17 +0000 (20:23 +0200)
committerMaxim Mamontov <faust.madf@gmail.com>
Sun, 25 Jan 2015 18:23:17 +0000 (20:23 +0200)
projects/stargazer/build

index 488836cbb8b186eccf7a42277021e15acf8dd2d7..f8fb73633a1adbe75363327aad3754479e4ca5c9 100755 (executable)
@@ -346,7 +346,7 @@ else
 fi
 
 printf "Checking for -lnfnetlink... "
-printf "#include <linux/netfilter.h>\nint main() { return 0; }\n" > build_check.c
+printf "#include <stdint.h>\n#include <netinet/in.h>\n#include <linux/netfilter.h>\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 <libnetfilter_queue/libnetfilter_queue.h>\nint main() { return 0; }\n" > build_check.c
+printf "#include <stdint.h>\n#include <libnetfilter_queue/libnetfilter_queue.h>\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