python: fix disabling the SSL module
[buildroot-gz.git] / package / wpan-tools / 0001-fix-build-with-newer-libnl.patch
blob03e1a033401198507fdc5ad681d3e4e0857ab58d
1 From 51ab69d76aa708c79aed971ee4083abb8cc07201 Mon Sep 17 00:00:00 2001
2 From: Stefan Schmidt <stefan@osg.samsung.com>
3 Date: Mon, 9 Nov 2015 19:06:25 +0100
4 Subject: [PATCH] build: avoid redefinition errors with libnl >= 3.2.27
6 From 3.2.17 onwards we have nla for s8, s16, etc defined directly in libnl.
7 If we keep including this file anyway we run into redefinition errors. Better
8 include use our own only for earlier versions.
10 Happened to me on Fedora 22 after my last update.
12 Signed-off-by: Stefan Schmidt <stefan@osg.samsung.com>
13 Acked-by: Alexander Aring <alex.aring@gmail.com>
14 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
15 ---
16 Patch status: upstream
18 src/nl_extras.h | 4 ++++
19 1 file changed, 4 insertions(+)
21 diff --git a/src/nl_extras.h b/src/nl_extras.h
22 index 9d841aa..c4d1d14 100644
23 --- a/src/nl_extras.h
24 +++ b/src/nl_extras.h
25 @@ -1,6 +1,8 @@
26 #ifndef __NL_EXTRAS_H
27 #define __NL_EXTRAS_H
29 +#if LIBNL_VER_MIC <= 26
31 #ifndef NLA_S8
33 #define NLA_S8 13
34 @@ -43,4 +45,6 @@ static inline int32_t nla_get_s32(struct nlattr *nla)
36 #endif /* NLA_S64 */
38 +#endif /* LIBNL_VER_MIC */
40 #endif /* __NL_EXTRAS_H */