aboutsummaryrefslogtreecommitdiff
path: root/gdb/xm-sysv4.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/xm-sysv4.h')
-rw-r--r--gdb/xm-sysv4.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/xm-sysv4.h b/gdb/xm-sysv4.h
index 35c831d..8d5b0d1 100644
--- a/gdb/xm-sysv4.h
+++ b/gdb/xm-sysv4.h
@@ -65,3 +65,18 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
/* Use setpgid(0,0) to run inferior in a separate process group */
#define NEED_POSIX_SETPGID
+
+/* Declare the return types (or supply prototypes for) functions which
+ do not end up being defined by any of the currently included system
+ header files, and which cannot be defined in any common file since a
+ single definition is known to cause portability problems due to
+ conflicts with definitions on other systems.
+ FIXME: This may only be a temporary solution (fnf) */
+
+#ifdef __STDC__
+extern void *malloc(size_t);
+extern void *realloc(void *, size_t);
+#else
+extern char *malloc();
+extern char *realloc();
+#endif