summaryrefslogtreecommitdiffstats
path: root/lib/cli/qdisc
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-03-01 21:00:14 (GMT)
committerThomas Haller <thaller@redhat.com>2017-03-02 00:33:25 (GMT)
commit45cbfb9d11c23d5f64a795fb05205ced48db1c7c (patch)
treecec9fcb3513f60bd017d1c3eda94b593438fe8fc /lib/cli/qdisc
parent3b2071e970995a9a22d46457e60a762161b46231 (diff)
downloadlibnl-45cbfb9d11c23d5f64a795fb05205ced48db1c7c.zip
libnl-45cbfb9d11c23d5f64a795fb05205ced48db1c7c.tar.gz
libnl-45cbfb9d11c23d5f64a795fb05205ced48db1c7c.tar.bz2
include: don't include kernel headers in public libnl3 headers
It would be desirable not to include kernel headers in our public libnl3 headers. As a test, remove all those includes, and fix compilation by explicitly including the kernel headers where needed. In some cases, that requires forward declaration for kernel structures, as we use them as part of our own headers. Realistically, we cannot drop those includes as it probalby breaks compilation for users that expect to get a certain kernel header when including a libnl3 header. So, this will not be done and the includes will be restored in the next commit. Do this step to show how it would be and to verify that we could build with such a change. The reason not to do this is backward compatibility (at compile-time).
Diffstat (limited to 'lib/cli/qdisc')
-rw-r--r--lib/cli/qdisc/hfsc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/cli/qdisc/hfsc.c b/lib/cli/qdisc/hfsc.c
index 6a0c960..619befc 100644
--- a/lib/cli/qdisc/hfsc.c
+++ b/lib/cli/qdisc/hfsc.c
@@ -12,6 +12,7 @@
#include <netlink/cli/utils.h>
#include <netlink/cli/tc.h>
#include <netlink/route/qdisc/hfsc.h>
+#include <linux/pkt_sched.h>
static void print_qdisc_usage(void)
{