diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-05-27 19:29:52 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-05-27 19:29:52 +0200 |
commit | 75079aff51e977301771fbcb9f5ade0ff661b78b (patch) | |
tree | 94dcc5df17fc4afeee4e027e9700d89b31c09e74 /autogen.sh | |
parent | 36d2ed3de20a37a1d5a970596e3f672537c36f49 (diff) |
update include files
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -14,10 +14,24 @@ include () TARGET=include/libnfnetlink/linux_nfnetlink.h echo "Copying nfnetlink.h to linux_nfnetlink.h" cp $INCLUDEDIR/netfilter/nfnetlink.h $TARGET + TMP=`mktemp` + sed 's/__be16/u_int16_t/g' $TARGET > $TMP + cp $TMP $TARGET + sed 's/#include <linux\/netfilter\/nfnetlink_compat\.h>/#include <libnfnetlink\/linux_nfnetlink_compat\.h>/g' $TARGET > $TMP + cp $TMP $TARGET else echo "can't find nfnetlink.h kernel file in $INCLUDEDIR" exit 1 fi + + if [ -f $INCLUDEDIR/netfilter/nfnetlink_compat.h ] + then + TARGET=include/libnfnetlink/linux_nfnetlink_compat.h + echo "Copying nfnetlink_compat.h to linux_nfnetlink_compat.h" + cp $INCLUDEDIR/netfilter/nfnetlink_compat.h $TARGET + else + echo "can't find nfnetlink.h kernel file in $INCLUDEDIR, ignoring" + fi } run () |