libnl-tiny: include <sys/socket.h>
authorFelix Fietkau <nbd@openwrt.org>
Wed, 11 Nov 2015 11:39:21 +0000 (11:39 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 11 Nov 2015 11:39:21 +0000 (11:39 +0000)
commit95282adbcb51fcb0b8250e0ecb8bbd6bf5196f0f
tree30c11c22deafb4410c102a6ca6d48a813f9493e5
parent50ae486cf4a6f443c39ccdfec002e9379d129e31
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
src/include/linux/netlink.h
src/include/netlink/handlers.h