cvs commit: patches/m4 m4-1.4-gcc33-1.patch

tushar at linuxfromscratch.org tushar at linuxfromscratch.org
Mon Sep 1 19:34:46 PDT 2003


tushar      03/09/01 20:34:46

  Added:       m4       m4-1.4-gcc33-1.patch
  Log:
  added m4-1.4-gcc33-1.patch
  
  Revision  Changes    Path
  1.1                  patches/m4/m4-1.4-gcc33-1.patch
  
  Index: m4-1.4-gcc33-1.patch
  ===================================================================
  Submitter: Jim Gifford (patches at jg555 dot com)
  Origin: CVS of M4
  Date: 06-25-2003 
  Description: Fixes GCC 3.3.x compile errors
  
  diff -Naur m4-1.4.orig/src/builtin.c m4-1.4/src/builtin.c
  --- m4-1.4.orig/src/builtin.c	1994-08-31 09:45:12.000000000 -0000
  +++ m4-1.4/src/builtin.c	2003-06-25 09:43:37.000000000 -0000
  @@ -1078,7 +1078,7 @@
   {
     if (bad_argc (argv[0], argc, 2, 2))
       return;
  -  mktemp (ARG (1));
  +  mkstemp (ARG (1));
     obstack_grow (obs, ARG (1), strlen (ARG (1)));
   }
  
  diff -Naur m4-1.4.orig/src/stackovf.c m4-1.4/src/stackovf.c
  --- m4-1.4.orig/src/stackovf.c	1994-09-23 06:06:26.000000000 -0000
  +++ m4-1.4/src/stackovf.c	2003-06-25 09:47:38.000000000 -0000
  @@ -335,13 +335,13 @@
   #if HAVE_SIGSTACK
   
     {
  -    struct sigstack ss;
  -    char *stackbuf = xmalloc (2 * SIGSTKSZ);
  +    stack_t ss;
   
  -    ss.ss_sp = stackbuf + SIGSTKSZ;
  -    ss.ss_onstack = 0;
  -    if (sigstack (&ss, NULL) < 0)
  -      error (1, errno, "sigstack");
  +    ss.ss_size = SIGSTKSZ;
  +    ss.ss_sp = xmalloc ((unsigned) ss.ss_size);
  +    ss.ss_flags = 0;
  +    if (sigaltstack (&ss, (stack_t *) 0) < 0)
  +      error (1, errno, "sigaltstack");
     }
   
   #else /* not HAVE_SIGSTACK */
  
  
  



More information about the patches mailing list