summaryrefslogtreecommitdiff
path: root/xload.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2010-02-14 15:20:30 +0100
committerMatthieu Herrb <matthieu.herrb@laas.fr>2010-02-16 21:23:58 +0100
commit396dd7f191773a903dc13f476e0f968dc1645407 (patch)
tree7a4d52b6a7b407cf32e4057f8c08592317b169e4 /xload.c
parent36659aa666808e5b42f5d98bce8f84bf82e88c0e (diff)
Let xload build on systems without gettext().
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'xload.c')
-rw-r--r--xload.c2
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();