From dabc64ea5d50ed4e90b4ff2937e77309a2d34ab7 Mon Sep 17 00:00:00 2001 From: DJ Delorie Date: Mon, 11 Mar 2002 15:16:08 +0000 Subject: [PATCH 1/1] merge from gcc --- libiberty/ChangeLog | 4 ++++ libiberty/xatexit.c | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 3684ff7488..6c6780732e 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -1,3 +1,7 @@ +2002-03-11 Douglas B Rupp + + * xatexit.c [VMS]: Include stdlib.h and unixlib.h. + 2002-03-06 Jim Blandy * splay-tree.c (splay_tree_xmalloc_allocate, diff --git a/libiberty/xatexit.c b/libiberty/xatexit.c index 728254b2c0..abf340737e 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 +#include +#else /* For systems with larger pointers than ints, this must be declared. */ PTR malloc PARAMS ((size_t)); +#endif static void xatexit_cleanup PARAMS ((void)); -- 2.34.1