aboutsummaryrefslogtreecommitdiff
path: root/gdb/xm-rs6000.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1992-06-19 22:39:44 +0000
committerStu Grossman <grossman@cygnus>1992-06-19 22:39:44 +0000
commit9aa448333dc03c53f4ed8826251f813123705217 (patch)
tree01863321fd1e5fca97baade99de53561d2af9983 /gdb/xm-rs6000.h
parent3fd76e586674dbac90a5e2327a44a17e39f70c88 (diff)
downloadgdb-9aa448333dc03c53f4ed8826251f813123705217.zip
gdb-9aa448333dc03c53f4ed8826251f813123705217.tar.gz
gdb-9aa448333dc03c53f4ed8826251f813123705217.tar.bz2
* Makefile.in (c-exp.tab.c, m2-exp.tab.c): Filter out bogus extern
declarations of malloc/realloc/free that are inserted by some versions of yacc. * m2-exp.y: Prevent conflicts with TRUE and FALSE tokens by #undeffing them. * xm-rs6000.h: Declare malloc/realloc/free appropriately. Yet another decl of strdup (this really ought to come from libiberty.h!).
Diffstat (limited to 'gdb/xm-rs6000.h')
-rw-r--r--gdb/xm-rs6000.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/xm-rs6000.h b/gdb/xm-rs6000.h
index 3ad96a6..30e2c24 100644
--- a/gdb/xm-rs6000.h
+++ b/gdb/xm-rs6000.h
@@ -66,8 +66,9 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* /usr/include/stdlib.h always uses void* and void,
even when __STDC__ isn't defined. */
#define MALLOC_INCOMPATIBLE
-extern char *malloc();
-extern char *realloc();
-extern void free();
+extern void *malloc PARAMS ((size_t size));
+extern void *realloc PARAMS ((void *ptr, size_t size));
+extern void free PARAMS ((void *));
-extern char *strdup();
+/* AIX doesn't have strdup, so we need to declare it for libiberty */
+extern char *strdup PARAMS ((char *));