diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-05-21 22:00:41 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-25 23:59:32 +0100 |
commit | 86638d1c8a24e93f60a3e030eb301f86bf11fbad (patch) | |
tree | d0460c4b5019f287fcfd9212c1985cc9611ea50d /meta/recipes-extended/libtirpc | |
parent | 57527e449bbd1faf455029f9e4d471d2cd848583 (diff) | |
download | poky-86638d1c8a24e93f60a3e030eb301f86bf11fbad.tar.gz |
libtirpc: Fix build error due to missing stdint.h> include
(From OE-Core rev: c74b925918e02ba0a13c8a30e510a9418f432f8d)
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>
Diffstat (limited to 'meta/recipes-extended/libtirpc')
-rw-r--r-- | meta/recipes-extended/libtirpc/libtirpc/0001-include-stdint.h-for-uintptr_t.patch | 32 | ||||
-rw-r--r-- | meta/recipes-extended/libtirpc/libtirpc_1.0.1.bb | 1 |
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 @@ | |||
1 | From b80d3b573c1dade2b29b22f8acc3b9e2c7ddefd7 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 20 May 2017 13:36:43 -0700 | ||
4 | Subject: [PATCH] include stdint.h for uintptr_t | ||
5 | |||
6 | Fixes | ||
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 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | Upstream-Status: Pending | ||
14 | |||
15 | src/xdr_sizeof.c | 1 + | ||
16 | 1 file changed, 1 insertion(+) | ||
17 | |||
18 | diff --git a/src/xdr_sizeof.c b/src/xdr_sizeof.c | ||
19 | index 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 | -- | ||
31 | 2.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 | ||
20 | SRC_URI_append_libc-uclibc = " file://remove-des-functionality.patch \ | 21 | SRC_URI_append_libc-uclibc = " file://remove-des-functionality.patch \ |