diff options
author | Douglas B Rupp <rupp@gnat.com> | 2002-03-11 07:46:54 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2002-03-11 07:46:54 -0500 |
commit | 285e0807557c87fce8a2ed02bfdf5ec16a060e4d (patch) | |
tree | 5c51a2c629e683f085fe7327e30ec52441d0e422 /libiberty | |
parent | 9a24e49a5a28810c80eaad0dc1f3e35c6fc2ecc1 (diff) | |
download | gcc-285e0807557c87fce8a2ed02bfdf5ec16a060e4d.zip gcc-285e0807557c87fce8a2ed02bfdf5ec16a060e4d.tar.gz gcc-285e0807557c87fce8a2ed02bfdf5ec16a060e4d.tar.bz2 |
* xatexit.c [VMS]: Include stdlib.h and unixlib.h.
From-SVN: r50574
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/xatexit.c | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 5c93347..109cab5 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-02-22 Jim Blandy <jimb@redhat.com> * splay-tree.c (splay_tree_xmalloc_allocate, diff --git a/libiberty/xatexit.c b/libiberty/xatexit.c index 728254b..abf3407 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)); |