fix a build warning in libnl
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 29 Dec 2007 18:10:16 +0000 (18:10 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sat, 29 Dec 2007 18:10:16 +0000 (18:10 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10025 3c298f89-4303-0410-b956-a3cf2f4a3e73

package/libnl/patches/110-offsetof.patch [new file with mode: 0644]

diff --git a/package/libnl/patches/110-offsetof.patch b/package/libnl/patches/110-offsetof.patch
new file mode 100644 (file)
index 0000000..2fb5a4b
--- /dev/null
@@ -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))
This page took 0.025242 seconds and 4 git commands to generate.