ngrep: update include path of libpcap so bpf.h can be found
authorThomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Mon, 20 Oct 2014 19:54:26 +0000 (21:54 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 22 Oct 2014 20:48:20 +0000 (22:48 +0200)
commit879255ad1ead6a63b66c7341a053fe91683cddd0
tree09c2a25533f64f143462daf42354f363fb11b3f7
parent483a6ff2dc64861966a08cb0f3d57a4c462e6ae3
ngrep: update include path of libpcap so bpf.h can be found

The libpcap headers have moved from /usr/include to /usr/include/pcap,
although /usr/include/pcap.h still exists for backwards-compatibility
(but is a stub that simply includes pcap/pcap.h).
The ngrep package tries to find bpf.h based on the include statements in
pcap.h. If we point ngrep to /usr/include/pcap.h, bpf.h will not be
found and the associated functionality will not work.

The fix is to pass the new include path to the ngrep configure step.

Fixes bug #7370

[1] https://bugs.busybox.net/show_bug.cgi?id=7370

Signed-off-by: Thomas De Schampheleire <thomas.de.schampheleire@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/ngrep/ngrep.mk