daily update
[binutils-gdb.git] / libiberty / xatexit.c
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));