[PATCH] Let xload build on systems without gettext().

matthieu.herrb at laas.fr matthieu.herrb at laas.fr
Sun Feb 14 06:26:37 PST 2010


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

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

diff --git a/xload.c b/xload.c
index 849f8e2..01a42c3 100644
--- a/xload.c
+++ b/xload.c
@@ -207,12 +207,14 @@ main(int argc, char **argv)
     toplevel = XtAppInitialize(&app_con, "XLoad", options, XtNumber(options),
 			       &argc, argv, NULL, NULL, (Cardinal) 0);
 
+#ifdef USE_GETTEXT
     textdomain("xload");
 
     if ((domaindir = getenv ( "TEXTDOMAINDIR" )) == NULL) {
 	domaindir = LOCALEDIR;
     }
     bindtextdomain("xload", domaindir);
+#endif
 
     if (argc != 1) usage();
 
-- 
1.6.5.7



More information about the xorg-devel mailing list