mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-22 06:57:57 +00:00
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
This commit is contained in:
parent
047f9ef8eb
commit
1e06647d37
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include <linux/socket.h> /* for sa_family_t */
|
#include <linux/socket.h> /* for sa_family_t */
|
||||||
#include <linux/types.h>
|
#include <linux/types.h>
|
||||||
|
#include <sys/socket.h> /* for sa_family_t */
|
||||||
|
|
||||||
#define NETLINK_ROUTE 0 /* Routing/device hook */
|
#define NETLINK_ROUTE 0 /* Routing/device hook */
|
||||||
#define NETLINK_UNUSED 1 /* Unused number */
|
#define NETLINK_UNUSED 1 /* Unused number */
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <sys/socket.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <netlink/netlink-compat.h>
|
#include <netlink/netlink-compat.h>
|
||||||
#include <netlink/netlink-kernel.h>
|
#include <netlink/netlink-kernel.h>
|
||||||
|
Loading…
Reference in New Issue
Block a user