summaryrefslogtreecommitdiff
path: root/package/libs/libnl-tiny/src/include/linux/netlink.h
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-11-11 11:39:21 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-11-11 11:39:21 +0000
commit1e06647d370a3e9a06c3c64f1601d456aebe0db4 (patch)
treee5908da2b3c6d9d324cb938d1dda3ebd5944e1f2 /package/libs/libnl-tiny/src/include/linux/netlink.h
parent047f9ef8eb31ef5992225f1c6e4eb22ae196d225 (diff)
downloadmtk-20170518-1e06647d370a3e9a06c3c64f1601d456aebe0db4.zip
mtk-20170518-1e06647d370a3e9a06c3c64f1601d456aebe0db4.tar.gz
mtk-20170518-1e06647d370a3e9a06c3c64f1601d456aebe0db4.tar.bz2
libnl-tiny: include <sys/socket.h>
Currently some libnl headers require application code to include dependencies on its own. E.g. a simple include of <linux/netlink.h> will trigger an error: /usr/include/libnl-tiny/linux/netlink.h:32:2: error: unknown type name 'sa_family_t' Similarly including <netlink/handlers.h> causes: /usr/include/libnl-tiny/netlink/handlers.h:133:19: warning: 'struct ucred' declared inside parameter list [enabled by default] Fix it by including <sys/socket.h> where needed in libnl headers. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 47456
Diffstat (limited to 'package/libs/libnl-tiny/src/include/linux/netlink.h')
-rw-r--r--package/libs/libnl-tiny/src/include/linux/netlink.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/libs/libnl-tiny/src/include/linux/netlink.h b/package/libs/libnl-tiny/src/include/linux/netlink.h
index d252103..3d6d367 100644
--- a/package/libs/libnl-tiny/src/include/linux/netlink.h
+++ b/package/libs/libnl-tiny/src/include/linux/netlink.h
@@ -3,6 +3,7 @@
#include <linux/socket.h> /* for sa_family_t */
#include <linux/types.h>
+#include <sys/socket.h> /* for sa_family_t */
#define NETLINK_ROUTE 0 /* Routing/device hook */
#define NETLINK_UNUSED 1 /* Unused number */