From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Henderson To: egcs@cygnus.com Subject: texinfo tidiness Date: Tue, 02 Sep 1997 10:42:00 -0000 Message-id: <199709021724.KAA17702@rtl.cygnus.com> X-SW-Source: 1997-09/msg00050.html Some minor patches to texinfo as found in egcs. The makeinfo one is rather important so as not to crop the high bits from the return of malloc and friends on Alpha. r~ Tue Sep 2 10:19:48 1997 Richard Henderson * makeinfo/makeinfo.c: Maybe include for malloc et al. * util/install-info.c: Include . (my_strerror): Use strerror if available. Index: texinfo/makeinfo/makeinfo.c =================================================================== RCS file: /cvs/cvsfiles/egcs/texinfo/makeinfo/makeinfo.c,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 makeinfo.c --- makeinfo.c 1997/08/21 22:58:07 1.1.1.1 +++ makeinfo.c 1997/09/02 17:15:35 @@ -79,6 +79,10 @@ int minor_version = 67; #include #endif +#if defined (STDC_HEADERS) +#include +#endif + #if defined (HAVE_STRING_H) #include #else Index: texinfo/util/install-info.c =================================================================== RCS file: /cvs/cvsfiles/egcs/texinfo/util/install-info.c,v retrieving revision 1.1.1.1 diff -u -p -r1.1.1.1 install-info.c --- install-info.c 1997/08/21 22:58:12 1.1.1.1 +++ install-info.c 1997/09/02 17:16:13 @@ -24,6 +24,12 @@ Foundation, Inc., 59 Temple Place - Suit #include #include +#if defined (HAVE_STRING_H) +#include +#else +#include +#endif /* !HAVE_STRING_H */ + /* Get O_RDONLY. */ #ifdef HAVE_SYS_FCNTL_H #include @@ -342,12 +348,16 @@ char * my_strerror (errnum) int errnum; { +#ifdef HAVE_STRERROR + return strerror(errnum); +#else extern char *sys_errlist[]; extern int sys_nerr; if (errnum >= 0 && errnum < sys_nerr) return sys_errlist[errnum]; return (char *) "Unknown error"; +#endif } /* This table defines all the long-named options, says whether they