Subject: | Patch to fix missing alloca for HPUX. |
Time::Piece fails to include the proper header file for alloca support
under HPUX.
Fix is to add "|| defined(__hpux)" to the condition to include the
alloca.h header.
diff -U3 -r Time-Piece-1.20/Piece.xs Time-Piece-1.20-5SdShC/Piece.xs
--- Time-Piece-1.20/Piece.xs 2010-03-02 09:57:35.000000000 -0500
+++ Time-Piece-1.20-patch/Piece.xs 2010-07-07 20:38:55.000000000 -
0400
@@ -314,7 +314,7 @@
#define alloca _alloca
#endif
#else
-#if defined(_SGIAPI) || defined( __sgi ) || ( defined (__SVR4) &&
defined (__sun) )
+#if defined(_SGIAPI) || defined( __sgi ) || ( defined (__SVR4) &&
defined (__sun) ) || defined(__hpux)
/* required for IRIX and Solaris */
#include <alloca.h>
#endif