# HG changeset patch # User Ben Key # Date 1039238547 0 # Node ID c912a632b4a215ce61dfb3a89b4da76b6185b903 # Parent 7b32cc7ff52022954168877ae086502e4c7a3a38 Fixed the build error in getopt.c that occured on systems lacking a gettext implementation. Thanks go to Andrew Choi [akochoi@shaw.ca] for this one. diff -r 7b32cc7ff520 -r c912a632b4a2 lib-src/getopt.c --- a/lib-src/getopt.c Fri Dec 06 19:56:57 2002 +0000 +++ b/lib-src/getopt.c Sat Dec 07 05:22:27 2002 +0000 @@ -76,14 +76,20 @@ #endif #if 0 -#ifdef _LIBC -# include -#else +# ifdef _LIBC +# include +# else /* not #ifdef _LIBC */ /* This is for other GNU distributions with internationalized messages. */ -# include "gettext.h" -#endif -#endif -#define _(msgid) gettext (msgid) +# include "gettext.h" +# endif /* end #ifdef _LIBC */ +#endif /* end #if 0 */ + +#if HAVE_LIBINTL_H || defined _LIBC + /* Should I include libintl.h here as in regex.c ? */ +# define _(msgid) gettext (msgid) +#else /* not #if HAVE_LIBINTL_H || defined _LIBC */ +# define _(msgid) (msgid) +#endif /* end #if HAVE_LIBINTL_H || defined _LIBC */ #if defined _LIBC && defined USE_IN_LIBIO # include