summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/ncurses/files/exit_prototype.patch22
-rw-r--r--meta/recipes-core/ncurses/ncurses_6.3+20220423.bb1
2 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-core/ncurses/files/exit_prototype.patch b/meta/recipes-core/ncurses/files/exit_prototype.patch
new file mode 100644
index 0000000000..791421a338
--- /dev/null
+++ b/meta/recipes-core/ncurses/files/exit_prototype.patch
@@ -0,0 +1,22 @@
1Add needed headers for including mbstate_t and exit()
2
3Upstream-Status: Inappropriate [Reconfigure will solve it]
4Signed-off-by: Khem Raj <raj.khem@gmail.com>
5--- a/configure
6+++ b/configure
7@@ -3422,6 +3422,7 @@ rm -f "conftest.$ac_objext" "conftest.$a
8 cat >"conftest.$ac_ext" <<_ACEOF
9 #line 3423 "configure"
10 #include "confdefs.h"
11+#include <stdlib.h>
12 $ac_declaration
13 int
14 main (void)
15@@ -12997,6 +12998,7 @@ cat >"conftest.$ac_ext" <<_ACEOF
16 #include <stdlib.h>
17 #include <stdarg.h>
18 #include <stdio.h>
19+#include <wchar.h>
20 #ifdef HAVE_LIBUTF8_H
21 #include <libutf8.h>
22 #endif
diff --git a/meta/recipes-core/ncurses/ncurses_6.3+20220423.bb b/meta/recipes-core/ncurses/ncurses_6.3+20220423.bb
index 9fba5b584b..ca5fa32572 100644
--- a/meta/recipes-core/ncurses/ncurses_6.3+20220423.bb
+++ b/meta/recipes-core/ncurses/ncurses_6.3+20220423.bb
@@ -3,6 +3,7 @@ require ncurses.inc
3SRC_URI += "file://0001-tic-hang.patch \ 3SRC_URI += "file://0001-tic-hang.patch \
4 file://0002-configure-reproducible.patch \ 4 file://0002-configure-reproducible.patch \
5 file://0003-gen-pkgconfig.in-Do-not-include-LDFLAGS-in-generated.patch \ 5 file://0003-gen-pkgconfig.in-Do-not-include-LDFLAGS-in-generated.patch \
6 file://exit_prototype.patch \
6 " 7 "
7# commit id corresponds to the revision in package version 8# commit id corresponds to the revision in package version
8SRCREV = "20db1fb41ec91cd8a1f528e770362092c5403378" 9SRCREV = "20db1fb41ec91cd8a1f528e770362092c5403378"