From be3a828e7057e2ea01772b2a00d2ad3e5c46776c Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 7 May 2010 01:32:54 +0000 Subject: 2010-05-07 Marcus Brinkmann * engine-g13.c, gpgme.c, engine-gpgsm.c, engine-gpg.c, op-support.c, engine-assuan.c, gpgme-tool.c: Include only if available with HAVE_LOCALE_H and conditionalize use of LC_CTYPE on its definition. * engine-gpgconf.c: Do not include . --- src/engine-assuan.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/engine-assuan.c') diff --git a/src/engine-assuan.c b/src/engine-assuan.c index d8d30866..73ece80d 100644 --- a/src/engine-assuan.c +++ b/src/engine-assuan.c @@ -33,7 +33,9 @@ #include #include #include +#ifdef HAVE_LOCALE_H #include +#endif #include #include "gpgme.h" @@ -358,7 +360,10 @@ llass_set_locale (void *engine, int category, const char *value) /* FIXME: If value is NULL, we need to reset the option to default. But we can't do this. So we error out here. gpg-agent needs support for this. */ - if (category == LC_CTYPE) + if (0) + ; +#ifdef LC_CTYPE + else if (category == LC_CTYPE) { catstr = "lc-ctype"; if (!value && llass->lc_ctype_set) @@ -366,6 +371,7 @@ llass_set_locale (void *engine, int category, const char *value) if (value) llass->lc_ctype_set = 1; } +#endif #ifdef LC_MESSAGES else if (category == LC_MESSAGES) { -- cgit v1.2.3