Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | |