diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-09-06 18:09:07 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-06 17:13:19 +0100 |
commit | 3f97cd3514f3e6025788ab7d6eec586fb7ac542f (patch) | |
tree | 279fbc4cd04165f506db08314ab382212f7c89fd | |
parent | 58f7950896d0d9c1a313559e4de0ba3d4b10cc7f (diff) | |
download | poky-3f97cd3514f3e6025788ab7d6eec586fb7ac542f.tar.gz |
nspr: Fix build error due to missing stdint.h> include
(From OE-Core rev: 2f95c71ba17a6d68d3805efe82097c10b6740244)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch | 30 | ||||
-rw-r--r-- | meta/recipes-support/nspr/nspr_4.13.1.bb | 1 |
2 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch b/meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch new file mode 100644 index 0000000000..b3bdd8e08d --- /dev/null +++ b/meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From f7551ec58e2f0a892295e0c2a650083101e12c54 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 20 May 2017 13:24:26 -0700 | ||
4 | Subject: [PATCH] include stdint.h for SSIZE_MAX and SIZE_MAX definitions | ||
5 | |||
6 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
7 | --- | ||
8 | Upstream-Status: Pending | ||
9 | |||
10 | pr/tests/prfz.c | 4 +++- | ||
11 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/pr/tests/prfz.c b/pr/tests/prfz.c | ||
14 | index 0c5a432..9c17590 100644 | ||
15 | --- a/pr/tests/prfz.c | ||
16 | +++ b/pr/tests/prfz.c | ||
17 | @@ -10,7 +10,9 @@ | ||
18 | #include <sys/types.h> | ||
19 | #include <limits.h> | ||
20 | #include <string.h> | ||
21 | - | ||
22 | +#ifdef XP_UNIX | ||
23 | +#include <stdint.h> | ||
24 | +#endif | ||
25 | int | ||
26 | main(int argc, char **argv) | ||
27 | { | ||
28 | -- | ||
29 | 2.13.0 | ||
30 | |||
diff --git a/meta/recipes-support/nspr/nspr_4.13.1.bb b/meta/recipes-support/nspr/nspr_4.13.1.bb index 27c22379f6..63ebecf729 100644 --- a/meta/recipes-support/nspr/nspr_4.13.1.bb +++ b/meta/recipes-support/nspr/nspr_4.13.1.bb | |||
@@ -10,6 +10,7 @@ SRC_URI = "http://ftp.mozilla.org/pub/nspr/releases/v${PV}/src/nspr-${PV}.tar.gz | |||
10 | file://fix-build-on-x86_64.patch \ | 10 | file://fix-build-on-x86_64.patch \ |
11 | file://remove-srcdir-from-configure-in.patch \ | 11 | file://remove-srcdir-from-configure-in.patch \ |
12 | file://0002-Add-nios2-support.patch \ | 12 | file://0002-Add-nios2-support.patch \ |
13 | file://0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch \ | ||
13 | file://nspr.pc.in \ | 14 | file://nspr.pc.in \ |
14 | " | 15 | " |
15 | 16 | ||