diff options
Diffstat (limited to 'package/libs/libnl/patches')
5 files changed, 188 insertions, 0 deletions
diff --git a/package/libs/libnl/patches/.svn/entries b/package/libs/libnl/patches/.svn/entries new file mode 100644 index 0000000..2db1aa2 --- /dev/null +++ b/package/libs/libnl/patches/.svn/entries @@ -0,0 +1,96 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/package/libs/libnl/patches +svn://svn.openwrt.org/openwrt + + + +2012-10-08T11:24:12.513797Z +33657 +nbd + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +160-update_includes_for_iw.patch +file + + + + +2013-03-17T12:13:07.000000Z +71a291a7fd4281f7eeeaec4ea6d130c1 +2012-10-08T11:24:12.513797Z +33657 +nbd + + + + + + + + + + + + + + + + + + + + + +708 + +110-offsetof.patch +file + + + + +2013-03-17T12:13:07.000000Z +5e65e234d511fa1669cad21b217c9a6f +2012-10-08T11:24:12.513797Z +33657 +nbd + + + + + + + + + + + + + + + + + + + + + +361 + diff --git a/package/libs/libnl/patches/.svn/text-base/110-offsetof.patch.svn-base b/package/libs/libnl/patches/.svn/text-base/110-offsetof.patch.svn-base new file mode 100644 index 0000000..fa944a9 --- /dev/null +++ b/package/libs/libnl/patches/.svn/text-base/110-offsetof.patch.svn-base @@ -0,0 +1,12 @@ +--- a/include/netlink-local.h ++++ b/include/netlink-local.h +@@ -337,7 +337,9 @@ static inline int nl_cb_call(struct nl_c + } + + #define ARRAY_SIZE(X) (sizeof(X) / sizeof((X)[0])) ++#ifndef offsetof + #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) ++#endif + + #define __init __attribute__ ((constructor)) + #define __exit __attribute__ ((destructor)) diff --git a/package/libs/libnl/patches/.svn/text-base/160-update_includes_for_iw.patch.svn-base b/package/libs/libnl/patches/.svn/text-base/160-update_includes_for_iw.patch.svn-base new file mode 100644 index 0000000..ad36dab --- /dev/null +++ b/package/libs/libnl/patches/.svn/text-base/160-update_includes_for_iw.patch.svn-base @@ -0,0 +1,34 @@ +--- a/include/linux/genetlink.h ++++ b/include/linux/genetlink.h +@@ -39,6 +39,9 @@ enum { + CTRL_CMD_NEWOPS, + CTRL_CMD_DELOPS, + CTRL_CMD_GETOPS, ++ CTRL_CMD_NEWMCAST_GRP, ++ CTRL_CMD_DELMCAST_GRP, ++ CTRL_CMD_GETMCAST_GRP, /* unused */ + __CTRL_CMD_MAX, + }; + +@@ -52,6 +55,7 @@ enum { + CTRL_ATTR_HDRSIZE, + CTRL_ATTR_MAXATTR, + CTRL_ATTR_OPS, ++ CTRL_ATTR_MCAST_GROUPS, + __CTRL_ATTR_MAX, + }; + +@@ -66,4 +70,13 @@ enum { + + #define CTRL_ATTR_OP_MAX (__CTRL_ATTR_OP_MAX - 1) + ++enum { ++ CTRL_ATTR_MCAST_GRP_UNSPEC, ++ CTRL_ATTR_MCAST_GRP_NAME, ++ CTRL_ATTR_MCAST_GRP_ID, ++ __CTRL_ATTR_MCAST_GRP_MAX, ++}; ++ ++#define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1) ++ + #endif /* __LINUX_GENERIC_NETLINK_H */ diff --git a/package/libs/libnl/patches/110-offsetof.patch b/package/libs/libnl/patches/110-offsetof.patch new file mode 100644 index 0000000..fa944a9 --- /dev/null +++ b/package/libs/libnl/patches/110-offsetof.patch @@ -0,0 +1,12 @@ +--- a/include/netlink-local.h ++++ b/include/netlink-local.h +@@ -337,7 +337,9 @@ static inline int nl_cb_call(struct nl_c + } + + #define ARRAY_SIZE(X) (sizeof(X) / sizeof((X)[0])) ++#ifndef offsetof + #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) ++#endif + + #define __init __attribute__ ((constructor)) + #define __exit __attribute__ ((destructor)) diff --git a/package/libs/libnl/patches/160-update_includes_for_iw.patch b/package/libs/libnl/patches/160-update_includes_for_iw.patch new file mode 100644 index 0000000..ad36dab --- /dev/null +++ b/package/libs/libnl/patches/160-update_includes_for_iw.patch @@ -0,0 +1,34 @@ +--- a/include/linux/genetlink.h ++++ b/include/linux/genetlink.h +@@ -39,6 +39,9 @@ enum { + CTRL_CMD_NEWOPS, + CTRL_CMD_DELOPS, + CTRL_CMD_GETOPS, ++ CTRL_CMD_NEWMCAST_GRP, ++ CTRL_CMD_DELMCAST_GRP, ++ CTRL_CMD_GETMCAST_GRP, /* unused */ + __CTRL_CMD_MAX, + }; + +@@ -52,6 +55,7 @@ enum { + CTRL_ATTR_HDRSIZE, + CTRL_ATTR_MAXATTR, + CTRL_ATTR_OPS, ++ CTRL_ATTR_MCAST_GROUPS, + __CTRL_ATTR_MAX, + }; + +@@ -66,4 +70,13 @@ enum { + + #define CTRL_ATTR_OP_MAX (__CTRL_ATTR_OP_MAX - 1) + ++enum { ++ CTRL_ATTR_MCAST_GRP_UNSPEC, ++ CTRL_ATTR_MCAST_GRP_NAME, ++ CTRL_ATTR_MCAST_GRP_ID, ++ __CTRL_ATTR_MCAST_GRP_MAX, ++}; ++ ++#define CTRL_ATTR_MCAST_GRP_MAX (__CTRL_ATTR_MCAST_GRP_MAX - 1) ++ + #endif /* __LINUX_GENERIC_NETLINK_H */ |