summaryrefslogtreecommitdiff
path: root/package/libnl/patches/patch-include_netlink-local_h
diff options
context:
space:
mode:
Diffstat (limited to 'package/libnl/patches/patch-include_netlink-local_h')
-rw-r--r--package/libnl/patches/patch-include_netlink-local_h9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/libnl/patches/patch-include_netlink-local_h b/package/libnl/patches/patch-include_netlink-local_h
index c32825b23..02dc66130 100644
--- a/package/libnl/patches/patch-include_netlink-local_h
+++ b/package/libnl/patches/patch-include_netlink-local_h
@@ -9,3 +9,12 @@ $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
#include <arpa/inet.h>
#include <netdb.h>
+@@ -337,7 +337,7 @@ static inline int nl_cb_call(struct nl_c
+ }
+
+ #define ARRAY_SIZE(X) (sizeof(X) / sizeof((X)[0]))
+-#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
++#define __offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
+
+ #define __init __attribute__ ((constructor))
+ #define __exit __attribute__ ((destructor))