aboutsummaryrefslogtreecommitdiff
path: root/gdb/xm-sysv4.h
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1992-03-01 21:20:04 +0000
committerFred Fish <fnf@specifix.com>1992-03-01 21:20:04 +0000
commit4b8333decafe6c9495555aaecae4c392bdae1874 (patch)
tree6665f6092c5f793e55061997b367f953532dc8bc /gdb/xm-sysv4.h
parent961815e432a36e08f4e599fcc2412a27fc9f1b87 (diff)
downloadgdb-4b8333decafe6c9495555aaecae4c392bdae1874.zip
gdb-4b8333decafe6c9495555aaecae4c392bdae1874.tar.gz
gdb-4b8333decafe6c9495555aaecae4c392bdae1874.tar.bz2
xm-sysv4.h: Provide definitions/prototypes for host environment
functions for which no definitions or prototypes are provided in any currently included gdb or host environment header files. For SVR4, this currently includes malloc and realloc, which cannot be portably prototyped in any gdb include file.
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