From 6c199ed314634143efc89c7e40f170528036c497 Mon Sep 17 00:00:00 2001 From: "Sven M. Hallberg" Date: Mon, 18 Aug 2014 16:52:19 +0200 Subject: [PATCH] make avahi_init_i18n a no-op when compiling without NLS --- avahi-common/i18n.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/avahi-common/i18n.c b/avahi-common/i18n.c index 51c93e4..509abbe 100644 --- a/avahi-common/i18n.c +++ b/avahi-common/i18n.c @@ -24,9 +24,11 @@ #include "i18n.h" void avahi_init_i18n(void) { +#ifdef ENABLE_NLS /* Not really thread safe, but this doesn't matter much since * bindtextdomain is supposed to be idempotent anyway. */ + /* FIXME: but is bindtextdomain reentrant!? */ static int done = 0; @@ -35,4 +37,6 @@ void avahi_init_i18n(void) { bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); done = 1; } + +#endif /* ENABLE_NLS */ } -- 2.39.5