From: Jim Kingdon Date: Wed, 28 Apr 1993 13:51:26 +0000 (+0000) Subject: * config/sparc/xm-sun4os4.h: Declare free() to return int. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e82980e4ec5a5d241020d0908d537b6580501e30;p=binutils-gdb.git * config/sparc/xm-sun4os4.h: Declare free() to return int. Remove twisted use of PARAMS. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index be79d7d0e28..e97186da92d 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 a532f6edcb0..435066e19fc 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() */