antirez / antirez/hping

add 64bit, fix includes

Đang mở
#9 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
1.7k
Fork
364
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.