diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-04-28 19:17:50 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-04-28 19:17:50 +0000 |
commit | 08bb26176655f29ff633b2d44d07ffe833d90fa5 (patch) | |
tree | a85048c362c44d601b5a1e6bde3957f2d718059a /gdb/config/sparc/xm-sun4os4.h | |
parent | caa53d6d61a0a9a6008e24a71d528594bed4799f (diff) | |
download | gdb-08bb26176655f29ff633b2d44d07ffe833d90fa5.zip gdb-08bb26176655f29ff633b2d44d07ffe833d90fa5.tar.gz gdb-08bb26176655f29ff633b2d44d07ffe833d90fa5.tar.bz2 |
* config/sparc/xm-sun4os4.h [__STDC__]: Don't use MALLOC_INCOMPATIBLE.
Diffstat (limited to 'gdb/config/sparc/xm-sun4os4.h')
-rw-r--r-- | gdb/config/sparc/xm-sun4os4.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/config/sparc/xm-sun4os4.h b/gdb/config/sparc/xm-sun4os4.h index 435066e..db2c815 100644 --- a/gdb/config/sparc/xm-sun4os4.h +++ b/gdb/config/sparc/xm-sun4os4.h @@ -41,6 +41,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define MMAP_BASE_ADDRESS 0xE0000000 /* First mapping here */ #define MMAP_INCREMENT 0x01000000 /* Increment to next mapping */ +#ifndef __STDC__ +/* GCC (2.3-ish at least) fixes this in fixincludes. */ +/* /usr/include/malloc.h is included by vx-share/xdr_ld. */ /* /usr/include/malloc.h defines these w/o prototypes (and uses char * instead of void *). */ #define MALLOC_INCOMPATIBLE @@ -49,6 +52,7 @@ 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 (); +#endif /* SunOS 4.x uses nonstandard "char *" as type of third argument to ptrace() */ |