[PATCH] Let xfd build on systems without gettext.

matthieu.herrb at laas.fr matthieu.herrb at laas.fr
Sun Feb 14 06:31:13 PST 2010


From: Matthieu Herrb <matthieu.herrb at laas.fr>

Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
 xfd.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/xfd.c b/xfd.c
index aa1f4a6..c49ba31 100644
--- a/xfd.c
+++ b/xfd.c
@@ -196,6 +196,7 @@ main(int argc, char *argv[])
 				xfd_options, XtNumber(xfd_options),
 				&argc, argv, NULL, NULL, 0);
 
+#ifdef USE_GETTEXT
     textdomain("xfd");
 
     /* mainly for debugging */
@@ -203,6 +204,7 @@ main(int argc, char *argv[])
 	domaindir = LOCALEDIR;
     }
     bindtextdomain ("xfd", domaindir);
+#endif
 
     Resources[0].default_addr = gettext(DEF_SELECT_FORMAT);
     Resources[1].default_addr = gettext(DEF_METRICS_FORMAT);
-- 
1.6.5.3



More information about the xorg-devel mailing list