* xatexit.c [VMS]: Include stdlib.h and unixlib.h.
authorDouglas B Rupp <rupp@gnat.com>
Mon, 11 Mar 2002 12:47:53 +0000 (07:47 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Mon, 11 Mar 2002 12:47:53 +0000 (07:47 -0500)
From-SVN: r50575

libiberty/ChangeLog
libiberty/xatexit.c

index ab09bed85ad0217a399ca649ec863de42538e0f5..ac93c3904d9ec7bddf9d0f0beb350dbe964024cd 100644 (file)
@@ -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,
index 728254b2c0d818bf54e6ae172ccf162d291716b8..abf340737e41e9b3fdd77516c1f25d56cc9e55d3 100644 (file)
@@ -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));