Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Gaumond Pierre
Fri, 11 Dec 1992 19:38
Modifications for patch-2.0.12g8
Author: Gaumond Pierre
Date: Fri, 11 Dec 1992 19:38
Date: Fri, 11 Dec 1992 19:38
84 lines
2610 bytes
2610 bytes
Here are some patches for "patch-2.0.12g8" that can solve installation problems
in that package as well as a bug in option decoding for some SGI machines.
Modificatins in config.h.in and getopt.c come from me. Those in patch.c
come from Francois Pinard. Another poster has also suggested the same
corrections in patch.c.
I am on an SGI 4D/380 machine under IRIX 4.0.1 (System V Unix).
*** config.h.in.orig Thu Dec 10 10:54:26 1992
--- config.h.in Thu Dec 10 10:57:06 1992
***************
*** 21,26 ****
--- 21,29 ----
/* Define if the system has unistd.h. */
#undef HAVE_UNISTD_H
+ /* Define if the system has alloca.h. */
+ #undef HAVE_ALLOCA_H
+
/* Define as either int or void -- the type that signal handlers return. */
#undef RETSIGTYPE
*** getopt.c.orig Thu Dec 10 10:45:18 1992
--- getopt.c Thu Dec 10 10:46:47 1992
***************
*** 19,24 ****
--- 19,25 ----
along with this program; if not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
+ #include "config.h"
/* AIX requires this to be the first thing in the file. */
#ifdef __GNUC__
#define alloca __builtin_alloca
*** patch.c.orig Fri Dec 11 09:03:51 1992
--- patch.c Fri Dec 11 11:38:41 1992
***************
*** 125,130 ****
--- 125,132 ----
/* Apply a set of diffs as appropriate. */
+ char *program_name;
+
int
main(argc,argv)
int argc;
***************
*** 139,144 ****
--- 141,148 ----
int failtotal = 0;
int i;
+ program_name = argv[0];
+
setbuf(stderr, serrbuf);
for (i = 0; i<MAXFILEC; i++)
filearg[i] = Nullch;
***************
*** 474,480 ****
void
get_some_switches()
{
! Reg1 char optc;
rejname[0] = '\0';
optind_last = optind;
--- 478,484 ----
void
get_some_switches()
{
! Reg1 int optc;
rejname[0] = '\0';
optind_last = optind;
o
--
Pierre Gaumond. gaumondp@ERE.UMontreal.CA
Services Informatiques, Universite de Montreal.
C.P. 6128, Succursale "A", Montreal,
Quebec, Canada. H3C 3J7
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads