summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJörg Krause <joerg.krause@embedded.rocks>2015-08-13 11:34:13 (GMT)
committerThomas Haller <thaller@redhat.com>2015-08-14 12:33:56 (GMT)
commitd0406d3838d4e70f19dcac1747decd7dd9b7435c (patch)
tree90969bb80ba54cc7c59ec32103c9937de6d57591
parentd21790bf96dd8c03419a792fa11ddd12976f4934 (diff)
downloadlibnl-d0406d3838d4e70f19dcac1747decd7dd9b7435c.zip
libnl-d0406d3838d4e70f19dcac1747decd7dd9b7435c.tar.gz
libnl-d0406d3838d4e70f19dcac1747decd7dd9b7435c.tar.bz2
lib/nl: add missing header
CMSG_NXTHDR requires <linux/socket.h>. This fix a build error with the musl C library: ``` undefined reference to `__cmsg_nxthdr' ``` https://github.com/thom311/libnl/pull/83
-rw-r--r--lib/nl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/nl.c b/lib/nl.c
index f06e9a0..1e1b1ed 100644
--- a/lib/nl.c
+++ b/lib/nl.c
@@ -32,6 +32,7 @@
#include <netlink/handlers.h>
#include <netlink/msg.h>
#include <netlink/attr.h>
+#include <linux/socket.h>
/**
* @defgroup core_types Data Types