summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-05-21 22:00:41 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-15 15:47:59 -0700
commit2f22172fea88b6b1d7fe6e0d29025a024cc61b64 (patch)
tree7ecd11e3256cfc669a003b73f1f9df20738169e2
parenta860a24135cae5c1b3708a9d8895cd5225bcabf7 (diff)
downloadpoky-2f22172fea88b6b1d7fe6e0d29025a024cc61b64.tar.gz
libtirpc: Fix build error due to missing stdint.h> include
(From OE-Core rev: fad973276c774149d79cb4cb824301d05c0a0778) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch32
-rw-r--r--meta/recipes-extended/libtirpc/libtirpc_1.0.1.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch b/meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch
new file mode 100644
index 0000000000..1fe9833afe
--- /dev/null
+++ b/meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch
@@ -0,0 +1,32 @@
1From b80d3b573c1dade2b29b22f8acc3b9e2c7ddefd7 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 20 May 2017 13:36:43 -0700
4Subject: [PATCH] include stdint.h for uintptr_t
5
6Fixes
7| ../../libtirpc-1.0.1/src/xdr_sizeof.c:93:13: error: 'uintptr_t' undeclared (first use in this function); did you mean '__intptr_t'?
8| if (len < (uintptr_t)xdrs->x_base) {
9| ^~~~~~~~~
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13Upstream-Status: Pending
14
15 src/xdr_sizeof.c | 1 +
16 1 file changed, 1 insertion(+)
17
18diff --git a/src/xdr_sizeof.c b/src/xdr_sizeof.c
19index d23fbd1..79d6707 100644
20--- a/src/xdr_sizeof.c
21+++ b/src/xdr_sizeof.c
22@@ -39,6 +39,7 @@
23 #include <rpc/xdr.h>
24 #include <sys/types.h>
25 #include <stdlib.h>
26+#include <stdint.h>
27 #include "un-namespace.h"
28
29 /* ARGSUSED */
30--
312.13.0
32
diff --git a/meta/recipes-extended/libtirpc/libtirpc_1.0.1.bb b/meta/recipes-extended/libtirpc/libtirpc_1.0.1.bb
index 662c8999c2..5518fb3c78 100644
--- a/meta/recipes-extended/libtirpc/libtirpc_1.0.1.bb
+++ b/meta/recipes-extended/libtirpc/libtirpc_1.0.1.bb
@@ -15,6 +15,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BP}.tar.bz2;name=libtirpc \
15 file://libtirpc-0.2.1-fortify.patch \ 15 file://libtirpc-0.2.1-fortify.patch \
16 file://export_key_secretkey_is_set.patch \ 16 file://export_key_secretkey_is_set.patch \
17 file://0001-replace-__bzero-with-memset-API.patch \ 17 file://0001-replace-__bzero-with-memset-API.patch \
18 file://0001-include-stdint.h-for-uintptr_t.patch \
18 " 19 "
19 20
20SRC_URI_append_libc-uclibc = " file://remove-des-functionality.patch \ 21SRC_URI_append_libc-uclibc = " file://remove-des-functionality.patch \