summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-05-21 22:00:42 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-25 23:59:32 +0100
commitaf3779d261105b43156764687e81c97371625aeb (patch)
tree3f92aae125ffce064d74c9304f52cbf213696917 /meta
parent86638d1c8a24e93f60a3e030eb301f86bf11fbad (diff)
downloadpoky-af3779d261105b43156764687e81c97371625aeb.tar.gz
nspr: Fix build error due to missing stdint.h> include
(From OE-Core rev: 2c58d7176417dcb8226f6244363979e739450732) 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')
-rw-r--r--meta/recipes-support/nspr/nspr/0001-include-stdint.h-for-SSIZE_MAX-and-SIZE_MAX-definiti.patch30
-rw-r--r--meta/recipes-support/nspr/nspr_4.14.bb1
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 @@
1From f7551ec58e2f0a892295e0c2a650083101e12c54 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 20 May 2017 13:24:26 -0700
4Subject: [PATCH] include stdint.h for SSIZE_MAX and SIZE_MAX definitions
5
6Signed-off-by: Khem Raj <raj.khem@gmail.com>
7---
8Upstream-Status: Pending
9
10 pr/tests/prfz.c | 4 +++-
11 1 file changed, 3 insertions(+), 1 deletion(-)
12
13diff --git a/pr/tests/prfz.c b/pr/tests/prfz.c
14index 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--
292.13.0
30
diff --git a/meta/recipes-support/nspr/nspr_4.14.bb b/meta/recipes-support/nspr/nspr_4.14.bb
index f5ce91c754..6b47820c06 100644
--- a/meta/recipes-support/nspr/nspr_4.14.bb
+++ b/meta/recipes-support/nspr/nspr_4.14.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