diff options
Diffstat (limited to 'meta/recipes-extended/texinfo/texinfo-4.8/check-locale-h.patch')
-rw-r--r-- | meta/recipes-extended/texinfo/texinfo-4.8/check-locale-h.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-extended/texinfo/texinfo-4.8/check-locale-h.patch b/meta/recipes-extended/texinfo/texinfo-4.8/check-locale-h.patch new file mode 100644 index 0000000000..4a8cc57a56 --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo-4.8/check-locale-h.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | fix the macro check | ||
2 | |||
3 | Upstream-status: Pending | ||
4 | |||
5 | configure does not check if locale.h exists, but check setlocale, | ||
6 | if setlocale exist, the locale.h should exist. | ||
7 | |||
8 | Signed-off-by: Roy Li <rongqing.li@windriver.com> | ||
9 | --- | ||
10 | lib/system.h | 2 +- | ||
11 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
12 | |||
13 | diff --git a/lib/system.h b/lib/system.h | ||
14 | index 946eb3c..c70037b 100644 | ||
15 | --- a/lib/system.h | ||
16 | +++ b/lib/system.h | ||
17 | @@ -42,7 +42,7 @@ extern char *substring (const char *, const char *); | ||
18 | #include <ctype.h> | ||
19 | |||
20 | /* All systems nowadays probably have these functions, but ... */ | ||
21 | -#ifdef HAVE_LOCALE_H | ||
22 | +#ifdef HAVE_SETLOCALE | ||
23 | #include <locale.h> | ||
24 | #endif | ||
25 | #ifndef HAVE_SETLOCALE | ||
26 | -- | ||
27 | 1.7.10.4 | ||
28 | |||