aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-02-20 11:04:47 +0100
committerHarald Welte <laforge@osmocom.org>2021-02-20 11:28:59 +0100
commitf01ce65f5bfb0fe889d48d307457eff1c17d1af5 (patch)
tree5a2c031ca4d5546476666cc51ac3636865b284ae
parentbe1cf99e9a8ff8392108c43425caac257a709167 (diff)
gtp-kernel: don't #include libmnl headers
* we don't check for libmnl via pkg-config in configure.ac * we don't add libmnl include path to CFLAGS As a result, we cannot #include related files. libmnl is completely encapsulated by libgtpnl. It even includes a forward-declaration of 'struct mnl_socket'. Change-Id: I0af869cc3c8e30b69d73a4985c56ef7743565e95
-rw-r--r--contrib/osmo-ggsn.spec.in1
-rw-r--r--lib/gtp-kernel.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/contrib/osmo-ggsn.spec.in b/contrib/osmo-ggsn.spec.in
index 83a1ca7..d752a8e 100644
--- a/contrib/osmo-ggsn.spec.in
+++ b/contrib/osmo-ggsn.spec.in
@@ -30,7 +30,6 @@ BuildRequires: pkgconfig >= 0.20
BuildRequires: systemd-rpm-macros
%endif
BuildRequires: pkgconfig(libgtpnl) >= 1.0.0
-BuildRequires: pkgconfig(libmnl) >= 1.0.3
BuildRequires: pkgconfig(libosmocore) >= 1.1.0
BuildRequires: pkgconfig(libosmoctrl) >= 1.1.0
BuildRequires: pkgconfig(libosmovty) >= 1.1.0
diff --git a/lib/gtp-kernel.c b/lib/gtp-kernel.c
index b898ed7..2a731e6 100644
--- a/lib/gtp-kernel.c
+++ b/lib/gtp-kernel.c
@@ -18,7 +18,6 @@
#include <libgtpnl/gtp.h>
#include <libgtpnl/gtpnl.h>
-#include <libmnl/libmnl.h>
#include <errno.h>