instead of declaring alloca (right for HPUX 9).
#include <malloc.h>
#pragma alloca
#else /* not MSDOS, or __TURBOC__, or _AIX */
+#ifdef __hpux /* This is right for HPUX 10. */
+#include <alloca.h>
+#endif
+#if 0 /* This was right for HPUX 9.
+ Unfortunately there is no clean way to distinguish. */
#ifdef __hpux
#ifdef __cplusplus
extern "C" {
void *alloca ();
#endif /* not __cplusplus */
#endif /* __hpux */
+#endif /* 0 */
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc. */
#include <malloc.h>
#pragma alloca
#else /* not MSDOS, or __TURBOC__, or _AIX */
+#ifdef __hpux /* This is right for HPUX 10. */
+#include <alloca.h>
+#endif
+#if 0 /* This was right for HPUX 9.
+ Unfortunately there is no clean way to distinguish. */
#ifdef __hpux
#ifdef __cplusplus
extern "C" {
void *alloca ();
#endif /* not __cplusplus */
#endif /* __hpux */
+#endif /* 0 */
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc. */
#include <malloc.h>
#pragma alloca
#else /* not MSDOS, or __TURBOC__, or _AIX */
+#ifdef __hpux /* This is right for HPUX 10. */
+#include <alloca.h>
+#endif
+#if 0 /* This was right for HPUX 9.
+ Unfortunately there is no clean way to distinguish. */
#ifdef __hpux
#ifdef __cplusplus
extern "C" {
void *alloca ();
#endif /* not __cplusplus */
#endif /* __hpux */
+#endif /* 0 */
#endif /* not _AIX */
#endif /* not MSDOS, or __TURBOC__ */
#endif /* not sparc. */