aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2002-03-11 15:16:08 +0000
committerDJ Delorie <dj@redhat.com>2002-03-11 15:16:08 +0000
commitdabc64ea5d50ed4e90b4ff2937e77309a2d34ab7 (patch)
treee24ac343a85beb8f29dac506f8f1cf864da26b5b /libiberty/xatexit.c
parent* MAINTAINERS: Fix typo in name of gdb warnings option. (diff)
downloadbinutils-gdb-dabc64ea5d50ed4e90b4ff2937e77309a2d34ab7.tar.gz
binutils-gdb-dabc64ea5d50ed4e90b4ff2937e77309a2d34ab7.tar.bz2
binutils-gdb-dabc64ea5d50ed4e90b4ff2937e77309a2d34ab7.zip
merge from gcc
Diffstat (limited to 'libiberty/xatexit.c')
-rw-r--r--libiberty/xatexit.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libiberty/xatexit.c b/libiberty/xatexit.c
index 728254b2c0d..abf340737e4 100644
--- a/libiberty/xatexit.c
+++ b/libiberty/xatexit.c
@@ -33,8 +33,13 @@ failure. If you use @code{xatexit} to register functions, you must use
#define size_t unsigned long
#endif
+#if VMS
+#include <stdlib.h>
+#include <unixlib.h>
+#else
/* For systems with larger pointers than ints, this must be declared. */
PTR malloc PARAMS ((size_t));
+#endif
static void xatexit_cleanup PARAMS ((void));