当前仓库属于关闭状态,部分功能使用受限,详情请查阅 仓库状态说明
4 Star 1 Fork 1

OpenHarmony-SIG/third_party_libnfnetlink
关闭

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
autogen.sh 1.23 KB
一键复制 编辑 原始数据 按行查看 历史
#!/bin/sh -e
include ()
{
# If we keep a copy of the kernel header in the SVN tree, we'll have
# to worry about synchronization issues forever. Instead, we just copy
# the headers that we need from the lastest kernel version at autogen
# stage.
INCLUDEDIR=${KERNEL_DIR:-/lib/modules/`uname -r`/build}/include/linux
if [ -f $INCLUDEDIR/netfilter/nfnetlink.h ]
then
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
}
[ "x$1" = "xdistrib" ] && include
autoreconf -fi
rm -Rf autom4te.cache
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openharmony-sig/third_party_libnfnetlink.git
[email protected]:openharmony-sig/third_party_libnfnetlink.git
openharmony-sig
third_party_libnfnetlink
third_party_libnfnetlink
master

搜索帮助