antirez / antirez/hping

add 64bit, fix includes

未关闭
#9 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
1.7k
派生
364
PR 合并指标
30 天内没有已合并 PR

描述

Please add 64bit support

```
sed -i 's|/usr/lib|/usr/lib/ /usr/lib64/|' configure
```

Without this sed get

```
usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot find -ltcl
```

libpcap-devel not have net/bpf.h but pcap-bpf.h

```
rpm -ql libpcap-devel
...
/usr/include/pcap-bpf.h
...
```

I use this sed to fix include

```
sed -i 's|net/bpf.h|pcap-bpf.h|' script.c libpcap_stuff.c
```

Without this sed get

```
[ 9s] libpcap_stuff.c:20:21: fatal error: net/bpf.h: No such file or directory
[ 9s] #include
[ 9s] ^
[ 9s] compilation terminated.
[ 9s] Makefile:71: recipe for target 'libpcap_stuff.o' failed
```

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。