From 9f521e10db64babb50057c3ede623bfbd2a51e95 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 12 Apr 2018 16:35:09 +0200 Subject: tests: osmo-pcap-test: Fix pcap includes not found in old versions pcap/dlt.h only exists on newer versions of libpcap. On older versions, same defines are available in pcap/bpf.h, which in newer versions include pcap/dlt.h, so we are always fine include pcap/bpf.h. As a side note, there's a lots of comments in pcap/dlt.h stating that those symbols used to reside in pcap/bpf.h but were moved there at some point. Change-Id: I824671a415eb3f35f480c934b9780ff13510011a --- tests/osmo-pcap-test/l2_eth.c | 2 +- tests/osmo-pcap-test/l2_sll.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/osmo-pcap-test/l2_eth.c b/tests/osmo-pcap-test/l2_eth.c index 3171fd7..34f003a 100644 --- a/tests/osmo-pcap-test/l2_eth.c +++ b/tests/osmo-pcap-test/l2_eth.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include "proto.h" diff --git a/tests/osmo-pcap-test/l2_sll.c b/tests/osmo-pcap-test/l2_sll.c index 5a600ff..0f44e61 100644 --- a/tests/osmo-pcap-test/l2_sll.c +++ b/tests/osmo-pcap-test/l2_sll.c @@ -12,7 +12,7 @@ #include #include #include -#include +#include #include "proto.h" -- cgit v1.2.3