diff options
-rw-r--r-- | gdb/ChangeLog | 3 | ||||
-rw-r--r-- | gdb/config/sparc/xm-sun4os4.h | 8 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index be79d7d..e97186d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ Wed Apr 28 06:11:38 1993 Jim Kingdon (kingdon@cygnus.com) + * config/sparc/xm-sun4os4.h: Declare free() to return int. + Remove twisted use of PARAMS. + * config/rs6000/xm-rs6000.h: Don't define MALLOC_INCOMPATIBLE now that ansidecl.h assumes ANSI on AIX. diff --git a/gdb/config/sparc/xm-sun4os4.h b/gdb/config/sparc/xm-sun4os4.h index a532f6e..435066e 100644 --- a/gdb/config/sparc/xm-sun4os4.h +++ b/gdb/config/sparc/xm-sun4os4.h @@ -44,9 +44,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ /* /usr/include/malloc.h defines these w/o prototypes (and uses char * instead of void *). */ #define MALLOC_INCOMPATIBLE -extern char* malloc PARAMS (()); -extern char* realloc PARAMS (()); -extern void free PARAMS (()); +extern char* malloc (); +extern char* realloc (); +/* Yes, it really does define it as returning int, both in malloc.h and + stdlib.h, at least on SunOS 4.1.1. */ +extern int free (); /* SunOS 4.x uses nonstandard "char *" as type of third argument to ptrace() */ |