mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
rp-pppoe: Fix build with musl
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
This commit is contained in:
parent
2fee586153
commit
d946331bc0
|
|
@ -0,0 +1,30 @@
|
|||
From 8d4d452d733bac8c5b55a90bddec8cc323cc9fa8 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 28 Mar 2017 19:20:07 -0700
|
||||
Subject: [PATCH 1/2] ppoe: Dont include linux/if_ether.h
|
||||
|
||||
Fixes build with musl
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/pppoe.h | 4 ----
|
||||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/src/pppoe.h b/src/pppoe.h
|
||||
index ec067a0..281879c 100644
|
||||
--- a/src/pppoe.h
|
||||
+++ b/src/pppoe.h
|
||||
@@ -127,10 +127,6 @@ typedef unsigned long UINT32_t;
|
||||
#error Could not find a 32-bit integer type
|
||||
#endif
|
||||
|
||||
-#ifdef HAVE_LINUX_IF_ETHER_H
|
||||
-#include <linux/if_ether.h>
|
||||
-#endif
|
||||
-
|
||||
#include <netinet/in.h>
|
||||
|
||||
#ifdef HAVE_NETINET_IF_ETHER_H
|
||||
--
|
||||
2.12.1
|
||||
|
||||
|
|
@ -0,0 +1,25 @@
|
|||
From aca8473a516a8dc013866105da141fe1cd947474 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Tue, 28 Mar 2017 19:24:53 -0700
|
||||
Subject: [PATCH 2/2] Enable support for the kernel module
|
||||
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
src/configure.in | 1 +
|
||||
1 file changed, 1 insertion(+)
|
||||
|
||||
diff --git a/src/configure.in b/src/configure.in
|
||||
index cae0976..951a042 100644
|
||||
--- a/src/configure.in
|
||||
+++ b/src/configure.in
|
||||
@@ -33,6 +33,7 @@ AC_CHECK_HEADERS(linux/if_pppox.h, [], [],
|
||||
#include<net/ethernet.h>
|
||||
#include<linux/if.h>
|
||||
#include<linux/in.h>
|
||||
+#include<linux/in6.h>
|
||||
])
|
||||
|
||||
dnl Checks for typedefs, structures, and compiler characteristics.
|
||||
--
|
||||
2.12.1
|
||||
|
||||
|
|
@ -17,7 +17,10 @@ SRC_URI = "http://www.roaringpenguin.com/files/download/${BP}.tar.gz \
|
|||
file://pppoe-server.default \
|
||||
file://pppoe-server.init \
|
||||
file://configure.in-Error-fix.patch \
|
||||
file://pppoe-server.service"
|
||||
file://pppoe-server.service \
|
||||
file://0001-ppoe-Dont-include-linux-if_ether.h.patch \
|
||||
file://0002-Enable-support-for-the-kernel-module.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "216eb52b69062b92a64ee37fd71f4b66"
|
||||
SRC_URI[sha256sum] = "00794e04031546b0e9b8cf286f2a6d1ccfc4a621b2a3abb2d7ef2a7ab7cc86c2"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user