This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs & texinfo/config.h.in


On Jun 28, 1999, "Philippe De Muyter" <phdm@macqel.be> wrote:

> I think you must use `autoheader'.

Yup.  Unfortunately, it broke bootstrapping with cc on IRIX; getopt.c
wouldn't include libintl.h, and cc would complain about being unable
to convert int (the assumed return type of gettext) to char*.

The attached patch fixes this problem.  Ok to install?

-- 
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
{oliva,Alexandre.Oliva}@dcc.unicamp.br  aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
*** E-mail about software projects will be forwarded to mailing lists
Index: texinfo/ChangeLog
from  Alexandre Oliva  <oliva@dcc.unicamp.br>
	
	* lib/getopt.c: Include libintl.h.
	
Index: texinfo/lib/getopt.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/texinfo/lib/getopt.c,v
retrieving revision 1.3
diff -u -r1.3 getopt.c
--- texinfo/lib/getopt.c	1998/03/24 19:41:18	1.3
+++ texinfo/lib/getopt.c	1999/06/30 11:48:28
@@ -88,6 +88,11 @@
 #else
 # define _(msgid)	(msgid)
 #endif
+#else
+/* texinfo's config.h used to include libintl.h inconditionally.
+   It no longer includes it, but it still defines _(), so let's include
+   libintl.h ourselves, for a declaration of gettext().  */
+#include <libintl.h>
 #endif
 
 /* This version of `getopt' appears to the caller like standard Unix `getopt'

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]