summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-09-21 20:23:11 -0700
committerJoe MacDonald <joe_macdonald@mentor.com>2017-10-11 16:22:49 -0400
commite72b72c5b0b66d3368195d2534a32e75bc7c6fad (patch)
treeb3471a3f36632fe1c5c2b84a0342a0189a55de2b
parentec22dc2bc40991c18862b8623fc4d7d1d3aa594e (diff)
downloadmeta-openembedded-e72b72c5b0b66d3368195d2534a32e75bc7c6fad.tar.gz
openl2tp: Fix build with musl/libtirpc
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
-rw-r--r--meta-networking/recipes-protocols/openl2tp/openl2tp/0001-l2tp_api.c-include-rpc-clnt.h-for-resultproc_t.patch31
-rw-r--r--meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb1
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/openl2tp/openl2tp/0001-l2tp_api.c-include-rpc-clnt.h-for-resultproc_t.patch b/meta-networking/recipes-protocols/openl2tp/openl2tp/0001-l2tp_api.c-include-rpc-clnt.h-for-resultproc_t.patch
new file mode 100644
index 000000000..a11a97ebd
--- /dev/null
+++ b/meta-networking/recipes-protocols/openl2tp/openl2tp/0001-l2tp_api.c-include-rpc-clnt.h-for-resultproc_t.patch
@@ -0,0 +1,31 @@
1From 8f299df4dd1ca857e34859c377a29b183c630961 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 21 Sep 2017 13:05:03 -0700
4Subject: [PATCH] l2tp_api.c: include rpc/clnt.h for 'resultproc_t'
5
6Fixes
7
8| /mnt/a/oe/build/tmp/work/mips32r2-bec-linux-musl/openl2tp/1.8-r0/recipe-sysroot/usr/include/tirpc/rpc/pmap_clnt.h:81:12: error: unknown type name 'resultproc_t'; did you mean 'rpcproc_t'? | resultproc_t); | ^~~~~~~~~~~~
9
10Signed-off-by: Khem Raj <raj.khem@gmail.com>
11---
12Upstream-Status: Pending
13
14 l2tp_api.c | 1 +
15 1 file changed, 1 insertion(+)
16
17diff --git a/l2tp_api.c b/l2tp_api.c
18index f0946fd..f77881c 100644
19--- a/l2tp_api.c
20+++ b/l2tp_api.c
21@@ -26,6 +26,7 @@
22 #include <sys/types.h>
23 #include <rpc/types.h>
24 #include <rpc/xdr.h>
25+#include <rpc/clnt.h>
26 #include <rpc/pmap_clnt.h>
27 //#include <netinet/in.h>
28
29--
302.14.1
31
diff --git a/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb b/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
index 0395199e7..bbde8a337 100644
--- a/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
+++ b/meta-networking/recipes-protocols/openl2tp/openl2tp_1.8.bb
@@ -36,6 +36,7 @@ SRC_URI = "ftp://ftp.openl2tp.org/releases/${BP}/${BP}.tar.gz \
36SRC_URI_append_libc-musl = "\ 36SRC_URI_append_libc-musl = "\
37 file://0004-Adjust-for-linux-kernel-headers-assumptions-on-glibc.patch \ 37 file://0004-Adjust-for-linux-kernel-headers-assumptions-on-glibc.patch \
38 file://0002-user-ipv6-structures.patch \ 38 file://0002-user-ipv6-structures.patch \
39 file://0001-l2tp_api.c-include-rpc-clnt.h-for-resultproc_t.patch \
39 " 40 "
40SRC_URI[md5sum] = "e3d08dedfb9e6a9a1e24f6766f6dadd0" 41SRC_URI[md5sum] = "e3d08dedfb9e6a9a1e24f6766f6dadd0"
41SRC_URI[sha256sum] = "1c97704d4b963a87fbc0e741668d4530933991515ae9ab0dffd11b5444f4860f" 42SRC_URI[sha256sum] = "1c97704d4b963a87fbc0e741668d4530933991515ae9ab0dffd11b5444f4860f"