From: Felix Fietkau Date: Wed, 11 Nov 2015 11:39:21 +0000 (+0000) Subject: libnl-tiny: include X-Git-Tag: reboot~1569 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1e06647d370a3e9a06c3c64f1601d456aebe0db4;p=oweals%2Fopenwrt.git libnl-tiny: include Currently some libnl headers require application code to include dependencies on its own. E.g. a simple include of will trigger an error: /usr/include/libnl-tiny/linux/netlink.h:32:2: error: unknown type name 'sa_family_t' Similarly including causes: /usr/include/libnl-tiny/netlink/handlers.h:133:19: warning: 'struct ucred' declared inside parameter list [enabled by default] Fix it by including where needed in libnl headers. Signed-off-by: Rafał Miłecki SVN-Revision: 47456 --- diff --git a/package/libs/libnl-tiny/src/include/linux/netlink.h b/package/libs/libnl-tiny/src/include/linux/netlink.h index d252103d2b..3d6d367b12 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 /* for sa_family_t */ #include +#include /* for sa_family_t */ #define NETLINK_ROUTE 0 /* Routing/device hook */ #define NETLINK_UNUSED 1 /* Unused number */ diff --git a/package/libs/libnl-tiny/src/include/netlink/handlers.h b/package/libs/libnl-tiny/src/include/netlink/handlers.h index 7fb53b4eee..f5c933d0d7 100644 --- a/package/libs/libnl-tiny/src/include/netlink/handlers.h +++ b/package/libs/libnl-tiny/src/include/netlink/handlers.h @@ -14,6 +14,7 @@ #include #include +#include #include #include #include