summaryrefslogtreecommitdiff
path: root/libiberty
diff options
context:
space:
mode:
authorDJ Delorie <dj@delorie.com>2002-03-11 15:16:08 +0000
committerDJ Delorie <dj@delorie.com>2002-03-11 15:16:08 +0000
commit63162b09e3052853e4e15258d178fce96145ed57 (patch)
tree593fa928136bfa797153b78490f3e913e0c519c3 /libiberty
parent62cf09124f34046926fecb9a2bfe8e1b4b6fa847 (diff)
downloadgdb-63162b09e3052853e4e15258d178fce96145ed57.tar.gz
merge from gcc
Diffstat (limited to 'libiberty')
-rw-r--r--libiberty/ChangeLog4
-rw-r--r--libiberty/xatexit.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 3684ff74884..6c6780732ef 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+2002-03-11 Douglas B Rupp <rupp@gnat.com>
+
+ * xatexit.c [VMS]: Include stdlib.h and unixlib.h.
+
2002-03-06 Jim Blandy <jimb@redhat.com>
* splay-tree.c (splay_tree_xmalloc_allocate,
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));