aboutsummaryrefslogtreecommitdiffstats
path: root/package/libnl
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-12-29 18:10:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-12-29 18:10:16 +0000
commit8402e371c898e20b5d5ebce3a6912cb9a9c52549 (patch)
treef6c1989df3ea3f05a12858f82e4196037f990ca8 /package/libnl
parent1c7b8267085f8a5d26eb52461aac694f68ee9582 (diff)
downloadupstream-8402e371c898e20b5d5ebce3a6912cb9a9c52549.tar.gz
upstream-8402e371c898e20b5d5ebce3a6912cb9a9c52549.tar.bz2
upstream-8402e371c898e20b5d5ebce3a6912cb9a9c52549.zip
fix a build warning in libnl
SVN-Revision: 10025
Diffstat (limited to 'package/libnl')
-rw-r--r--package/libnl/patches/110-offsetof.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/package/libnl/patches/110-offsetof.patch b/package/libnl/patches/110-offsetof.patch
new file mode 100644
index 0000000000..2fb5a4b286
--- /dev/null
+++ b/package/libnl/patches/110-offsetof.patch
@@ -0,0 +1,14 @@
+Index: libnl-1.0-pre8/include/netlink-local.h
+===================================================================
+--- libnl-1.0-pre8.orig/include/netlink-local.h 2007-12-29 13:40:25.242226458 +0100
++++ libnl-1.0-pre8/include/netlink-local.h 2007-12-29 13:40:36.882889824 +0100
+@@ -336,7 +336,9 @@
+ }
+
+ #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))