From: Douglas B Rupp Date: Mon, 11 Mar 2002 12:47:53 +0000 (-0500) Subject: * xatexit.c [VMS]: Include stdlib.h and unixlib.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=50c7457998d11b46ac3a74656e1acff12acd0219;p=gcc.git * xatexit.c [VMS]: Include stdlib.h and unixlib.h. From-SVN: r50575 --- diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index ab09bed85ad..ac93c3904d9 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 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 +#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));