diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-08 22:51:41 +0200 |
commit | 1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e (patch) | |
tree | a21a5fc103bb3bd65ecd85ed22be5228fc54e447 /meta-networking/recipes-protocols/openl2tp/openl2tp/openl2tp-simplify-gcc-warning-hack.patch | |
download | meta-openembedded-1219bf8a90a7bf8cd3a5363551ef635d51e8fc8e.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta-networking/recipes-protocols/openl2tp/openl2tp/openl2tp-simplify-gcc-warning-hack.patch')
-rw-r--r-- | meta-networking/recipes-protocols/openl2tp/openl2tp/openl2tp-simplify-gcc-warning-hack.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/openl2tp/openl2tp/openl2tp-simplify-gcc-warning-hack.patch b/meta-networking/recipes-protocols/openl2tp/openl2tp/openl2tp-simplify-gcc-warning-hack.patch new file mode 100644 index 000000000..c11a127b8 --- /dev/null +++ b/meta-networking/recipes-protocols/openl2tp/openl2tp/openl2tp-simplify-gcc-warning-hack.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 460549a3de27f8dd8371b6d6fc1f69d8bffa102b Mon Sep 17 00:00:00 2001 | ||
2 | From: Joe MacDonald <joe_macdonald@mentor.com> | ||
3 | Date: Tue, 6 Jan 2015 11:23:21 -0500 | ||
4 | Subject: [PATCH] openl2tp: simplify gcc warning hack | ||
5 | |||
6 | The hack to work around the gcc warning causes problems with some modern | ||
7 | gcc configurations. Since the redef behaviour is essentially correct | ||
8 | everywhere and since the hack is still required on 32-bit builders, leave | ||
9 | it in place but remove the #if guard since it is only there to ensure that | ||
10 | the l2tp_private.h file is updated if the rpc source file is changed and | ||
11 | the two get out of sync. | ||
12 | |||
13 | Upstream-status: pending | ||
14 | |||
15 | Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com> | ||
16 | --- | ||
17 | l2tp_private.h | 6 ------ | ||
18 | 1 file changed, 6 deletions(-) | ||
19 | |||
20 | diff --git a/l2tp_private.h b/l2tp_private.h | ||
21 | index f3c1af7..cca6806 100644 | ||
22 | --- a/l2tp_private.h | ||
23 | +++ b/l2tp_private.h | ||
24 | @@ -89,14 +89,8 @@ | ||
25 | * So we redefine the constant with UL suffix to avoid the gcc warning. | ||
26 | * Is there some C preprocessor magic that could avoid having to do this? | ||
27 | */ | ||
28 | -#if L2TP_API_TUNNEL_FLAG_MTU != 2147483648 | ||
29 | -#error Constant L2TP_API_TUNNEL_FLAG_MTU changed. Update local definition here. | ||
30 | -#endif | ||
31 | #undef L2TP_API_TUNNEL_FLAG_MTU | ||
32 | #define L2TP_API_TUNNEL_FLAG_MTU 2147483648UL | ||
33 | -#if L2TP_API_SESSION_FLAG_NO_PPP != 2147483648 | ||
34 | -#error Constant L2TP_API_SESSION_FLAG_NO_PPP changed. Update local definition here. | ||
35 | -#endif | ||
36 | #undef L2TP_API_SESSION_FLAG_NO_PPP | ||
37 | #define L2TP_API_SESSION_FLAG_NO_PPP 2147483648UL | ||
38 | |||
39 | -- | ||
40 | 1.9.1 | ||
41 | |||