summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2008-08-14 11:53:38 +0200
committerThomas Graf <tgr@plip.localdomain>2008-08-19 01:40:25 +0200
commite38716b41e79b2d60ab9b7ada9678e1014a6898e (patch)
treefab3571b4f7552d45608ca00455fa2c9fd6b0aa0 /include
parentb310cbb7b6d1f48411d3ee72b48b7103ee2267eb (diff)
downloadandroid_external_libnl-e38716b41e79b2d60ab9b7ada9678e1014a6898e.tar.gz
android_external_libnl-e38716b41e79b2d60ab9b7ada9678e1014a6898e.tar.bz2
android_external_libnl-e38716b41e79b2d60ab9b7ada9678e1014a6898e.zip
libnl: fix about 100 warnings
In file included from addr.c:28: ../include/netlink-local.h:119:1: warning: "__deprecated" redefined In file included from /usr/include/linux/stddef.h:4, from /usr/include/linux/posix_types.h:4, from /usr/include/linux/types.h:8, from ../include/netlink-local.h:37, from addr.c:28: /usr/include/linux/compiler.h:45:1: warning: this is the location of the previous definition This happens about 100 times. Suggested patch:
Diffstat (limited to 'include')
-rw-r--r--include/netlink-local.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/netlink-local.h b/include/netlink-local.h
index eba4827..3942a4a 100644
--- a/include/netlink-local.h
+++ b/include/netlink-local.h
@@ -116,6 +116,7 @@ static inline int nl_cb_call(struct nl_cb *cb, int type, struct nl_msg *msg)
#define __init __attribute__ ((constructor))
#define __exit __attribute__ ((destructor))
+#undef __deprecated
#define __deprecated __attribute__ ((deprecated))
#define min(x,y) ({ \