diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2010-02-14 15:20:30 +0100 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2010-02-16 21:23:58 +0100 |
commit | 396dd7f191773a903dc13f476e0f968dc1645407 (patch) | |
tree | 7a4d52b6a7b407cf32e4057f8c08592317b169e4 | |
parent | 36659aa666808e5b42f5d98bce8f84bf82e88c0e (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>
-rw-r--r-- | xload.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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(); |