lib/strutils: circumvent missing localeconv()
Subsystems (2)
PATCH 1/1 lib/strutils: circumvent missing localeconv()
Add stub too nls.h, include it instead of locale.h. Code in strutils handles already returned NULL.
Signed-off-by maximilian attems <[email protected]>
--- include/nls.h | 6 ++++++ lib/strutils.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
include/nls.h +6 -0
@@ -12,6 +12,12 @@ int main(int argc, char *argv[]);#else # undef setlocale# define setlocale (Category, Locale)/* empty */ +struct lconv +{ +char *decimal_point; +}; +# undef localeconv +# define localeconv () NULL#endif #ifdef ENABLE_NLS
lib/strutils.c +1 -1
@@ -9,10 +9,10 @@#include <ctype.h> #include <errno.h> #include <sys/stat.h> -#include <locale.h> #include <string.h> #include "c.h" +#include "nls.h" #include "strutils.h" #include "bitops.h"
Signature · 1 line
1.7.10
Quoted 3 lines · maximilian attems
include/nls.h | 6 ++++++ lib/strutils.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-)
Applied, thanks.
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com