X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/f9d4d06e7cbe4965c0737baf8da309b1816ca82d..1df847bedf888087c3e91f2f7b961f18128986ae:/projects/stargazer/build?ds=inline diff --git a/projects/stargazer/build b/projects/stargazer/build index 23d6677e..ff2269e1 100755 --- a/projects/stargazer/build +++ b/projects/stargazer/build @@ -70,6 +70,7 @@ then 6) OS=bsd5;; 7) OS=bsd7;; 8) OS=bsd7;; + 9) OS=bsd7;; *) OS=unknown;; esac ETC_DIR="./inst/freebsd/etc/stargazer" @@ -334,6 +335,22 @@ else fi fi +echo -n "Checking for linux/netfilter_ipv4/ip_queue.h... " +echo "#include " > build_check.c +echo "#include " >> build_check.c +echo "int main() { return 0; }" >> build_check.c +$CC $CFLAGS $LDFLAGS build_check.c -lexpat -o fake > /dev/null 2> /dev/null +if [ $? != 0 ] +then + CHECK_IP_QUEUE_H=no + echo "no" +else + CHECK_IP_QUEUE_H=yes + DEFS="$DEFS HAS_IP_QUEUE_H" + echo "yes" +fi +rm -f fake + rm -f build_check.c if [ "$CHECK_EXPAT" != "yes" ]