summaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-20 01:37:10 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-20 01:37:10 +0000
commit211496566bf99ace06427acd2fccc3aa85d4d19c (patch)
tree49686c11f98c87c34da0f10b077e0275c0ec1a0c /gdb/utils.c
parent365f67c1fd2c8d32730c6715e0034372402e7e2e (diff)
downloadgdb-211496566bf99ace06427acd2fccc3aa85d4d19c.tar.gz
malloc() -> xmalloc.
Move malloc() decl to utils.c
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/utils.c b/gdb/utils.c
index 6d164e45ae3..b1205d6861c 100644
--- a/gdb/utils.c
+++ b/gdb/utils.c
@@ -57,6 +57,9 @@
#include <readline/readline.h>
#ifndef MALLOC_INCOMPATIBLE
+#ifdef NEED_DECLARATION_MALLOC
+extern PTR malloc ();
+#endif
#ifdef NEED_DECLARATION_REALLOC
extern PTR realloc ();
#endif