gnats-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to gnats/libiberty/strsignal.c


From: Milan Zamazal
Subject: Changes to gnats/libiberty/strsignal.c
Date: Mon, 10 Dec 2001 18:04:31 -0500

Index: gnats/libiberty/strsignal.c
diff -c gnats/libiberty/strsignal.c:1.2 gnats/libiberty/strsignal.c:1.3
*** gnats/libiberty/strsignal.c:1.2     Tue Oct 26 03:10:16 1999
--- gnats/libiberty/strsignal.c Mon Dec 10 18:03:26 2001
***************
*** 17,40 ****
     ignore any declaration in the system header files, and always
     declare it ourselves.  With luck, this will always work.  */
  #define sys_siglist no_such_symbol
  
  #include <stdio.h>
  #include <signal.h>
  
  /*  Routines imported from standard C runtime libraries. */
  
! #ifdef __STDC__
! #include <stddef.h>
! extern void *malloc (size_t size);                            /* 4.10.3.3 */
! extern void *memset (void *s, int c, size_t n);                       /* 
4.11.6.1 */
! #else /* !__STDC__ */
! extern char *malloc ();               /* Standard memory allocater */
! extern char *memset ();
! #endif        /* __STDC__ */
  
  /* Undefine the macro we used to hide the definition of sys_siglist
     found in the system header files.  */
  #undef sys_siglist
  
  #ifndef NULL
  #  ifdef __STDC__
--- 17,45 ----
     ignore any declaration in the system header files, and always
     declare it ourselves.  With luck, this will always work.  */
  #define sys_siglist no_such_symbol
+ #define sys_nsig sys_nsig__no_such_symbol
  
  #include <stdio.h>
  #include <signal.h>
  
  /*  Routines imported from standard C runtime libraries. */
  
! #ifdef HAVE_STDLIB_H
! #include <stdlib.h>
! #else
! extern PTR malloc ();
! #endif
! 
! #ifdef HAVE_STRING_H
! #include <string.h>
! #else
! extern PTR memset ();
! #endif
  
  /* Undefine the macro we used to hide the definition of sys_siglist
     found in the system header files.  */
  #undef sys_siglist
+ #undef sys_nsig
  
  #ifndef NULL
  #  ifdef __STDC__



reply via email to

[Prev in Thread] Current Thread [Next in Thread]