summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-05-22 05:00:41 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-03-15 22:47:53 (GMT)
commit4812f7574885b24f9acbc8efcf8843cfdb8f8a11 (patch)
tree4403243cd6a20fe82d7b073b6a267a315aa7c6d4
parent4517909ce6105dc9a414c24604c93670b5b81b8a (diff)
downloadpoky-4812f7574885b24f9acbc8efcf8843cfdb8f8a11.tar.gz
libtirpc: Fix build error due to missing stdint.h> include
(From OE-Core rev: d8842e86114cae7ca006ef903ac5459c7414010e) 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 0000000..1fe9833
--- /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 662c899..5518fb3 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 \