summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.in-Error-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.in-Error-fix.patch')
-rw-r--r--meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.in-Error-fix.patch59
1 files changed, 59 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.in-Error-fix.patch b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.in-Error-fix.patch
new file mode 100644
index 000000000..2661fd3db
--- /dev/null
+++ b/meta-networking/recipes-protocols/rp-pppoe/rp-pppoe-3.12/configure.in-Error-fix.patch
@@ -0,0 +1,59 @@
1From 71956de46feef962dc0645af4c81ae074ca3b818 Mon Sep 17 00:00:00 2001
2From: Lei Maohui <leimaohui@cn.fujitsu.com>
3Date: Wed, 19 Aug 2015 13:52:57 +0900
4Subject: [PATCH] configure.in: Error fix.
5
6the error is: conftest.c:9:28: fatal error: ac_nonexistent.h:
7No such file or directory #include <ac_nonexistent.h>
8
9Upstream-Status: pending
10
11Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com>
12---
13 src/configure.in | 30 ------------------------------
14 1 file changed, 30 deletions(-)
15
16diff --git a/src/configure.in b/src/configure.in
17index 0b23df5..31c7fbc 100644
18--- a/src/configure.in
19+++ b/src/configure.in
20@@ -193,36 +193,6 @@ if test "$GCC" = yes; then
21 CFLAGS="$CFLAGS -fno-strict-aliasing -Wall -Wstrict-prototypes"
22 fi
23
24-dnl Figure out packing order of structures
25-AC_CACHE_CHECK([packing order of bit fields],rpppoe_cv_pack_bitfields,[
26-if test "${rpppoe_cv_pack_bitfields+set}" != set ; then
27-AC_TRY_RUN([
28-union foo {
29- struct bar {
30- unsigned int ver:4;
31- unsigned int type:4;
32- } bb;
33- unsigned char baz;
34-};
35-
36-int
37-main(void)
38-{
39- union foo x;
40- x.bb.ver = 1;
41- x.bb.type = 2;
42- if (x.baz == 0x21) {
43- return 1;
44- } else if (x.baz == 0x12) {
45- return 0;
46- } else {
47- return 2;
48- }
49-}], rpppoe_cv_pack_bitfields=normal, rpppoe_cv_pack_bitfields=rev,
50-$ECHO "no defaults for cross-compiling"; exit 1)
51-fi
52-])
53-
54 if test "$rpppoe_cv_pack_bitfields" = "rev" ; then
55 AC_MSG_RESULT(reversed)
56 AC_DEFINE([PACK_BITFIELDS_REVERSED], [], [Reversed bitfields])
57--
581.8.4.2
59