summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/ncurses/files/exit_prototype.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/ncurses/files/exit_prototype.patch')
-rw-r--r--meta/recipes-core/ncurses/files/exit_prototype.patch22
1 files changed, 22 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