summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2015-04-23 11:47:01 +0200
committerTobias Klauser <tklauser@distanz.ch>2015-04-23 11:47:01 +0200
commit6a7762bd6ab5eaeec23fa05a22c1edf4d9ab0804 (patch)
tree1f255c003f901974af03e74cbc9f5c394cb90b08
parentc94658aefc17a94c610087adffe68c53114e00b2 (diff)
all: Fix libnl3 include path
The libnl3 examples [1] use <netlink/netlink.h> etc. and since pkg-config returns the paths including the libnl3 path component, we should specify our include paths relative to these ones, not /usr/include. [1] http://www.infradead.org/~tgr/libnl/doc/core.html#_linking_to_this_library Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
-rw-r--r--dissector.h2
-rw-r--r--mac80211.c10
-rw-r--r--proto_nlmsg.c2
3 files changed, 7 insertions, 7 deletions
diff --git a/dissector.h b/dissector.h
index 01d1525..fc20eda 100644
--- a/dissector.h
+++ b/dissector.h
@@ -12,7 +12,7 @@
#include <sys/socket.h>
#include <linux/if_packet.h>
#include <linux/if.h>
-#include <libnl3/netlink/msg.h>
+#include <netlink/msg.h>
#include "ring.h"
#include "tprintf.h"
diff --git a/mac80211.c b/mac80211.c
index 09f15b7..ee81646 100644
--- a/mac80211.c
+++ b/mac80211.c
@@ -18,11 +18,11 @@
#include <sys/socket.h>
#include <linux/if.h>
#include <linux/nl80211.h>
-#include <libnl3/netlink/genl/genl.h>
-#include <libnl3/netlink/genl/family.h>
-#include <libnl3/netlink/genl/ctrl.h>
-#include <libnl3/netlink/msg.h>
-#include <libnl3/netlink/attr.h>
+#include <netlink/genl/genl.h>
+#include <netlink/genl/family.h>
+#include <netlink/genl/ctrl.h>
+#include <netlink/msg.h>
+#include <netlink/attr.h>
#include "die.h"
#include "str.h"
diff --git a/proto_nlmsg.c b/proto_nlmsg.c
index 6f3d310..787d9d6 100644
--- a/proto_nlmsg.c
+++ b/proto_nlmsg.c
@@ -7,8 +7,8 @@
#include <stdio.h>
#include <unistd.h>
#include <limits.h>
-#include <libnl3/netlink/msg.h>
#include <libgen.h>
+#include <netlink/msg.h>
#include "pkt_buff.h"
#include "proto.h"