[PATCH] Let xfd build on systems without gettext.

Alan Coopersmith Alan.Coopersmith at Sun.COM
Mon Feb 15 17:38:30 PST 2010


Oops, sorry for missing that.

For both this and the xload equivalent:
Reviewed-by: Alan Coopersmith <alan.coopersmith at sun.com>

matthieu.herrb at laas.fr wrote:
> 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);

-- 
	-Alan Coopersmith-           alan.coopersmith at sun.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list