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.patch32
1 files changed, 32 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..fd961512e0
--- /dev/null
+++ b/meta/recipes-core/ncurses/files/exit_prototype.patch
@@ -0,0 +1,32 @@
1From 4a769a441d7e57a23017c3037cde3e53fb9f35fe Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 30 Aug 2022 15:58:32 -0700
4Subject: [PATCH] Add needed headers for including mbstate_t and exit()
5
6Upstream-Status: Inappropriate [Reconfigure will solve it]
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8
9---
10 configure | 2 ++
11 1 file changed, 2 insertions(+)
12
13diff --git a/configure b/configure
14index f377f551..163f8899 100755
15--- a/configure
16+++ b/configure
17@@ -3423,6 +3423,7 @@ rm -f "conftest.$ac_objext" "conftest.$ac_ext"
18 cat >"conftest.$ac_ext" <<_ACEOF
19 #line 3424 "configure"
20 #include "confdefs.h"
21+#include <stdlib.h>
22 $ac_declaration
23 int
24 main (void)
25@@ -13111,6 +13112,7 @@ cat >"conftest.$ac_ext" <<_ACEOF
26 #include <stdlib.h>
27 #include <stdarg.h>
28 #include <stdio.h>
29+#include <wchar.h>
30 #ifdef HAVE_LIBUTF8_H
31 #include <libutf8.h>
32 #endif