From 009b94d4211782f410efcbc8b357b9cc691b6612 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 22 Apr 1997 22:23:48 +0000 Subject: [PATCH] [__hpux]: Include alloca.h (right for HPUX 10) instead of declaring alloca (right for HPUX 9). --- bison.simple | 6 ++++++ src/bison.s1 | 6 ++++++ src/bison.simple | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/bison.simple b/bison.simple index c25067a7..e3bcfb6d 100644 --- a/bison.simple +++ b/bison.simple @@ -44,6 +44,11 @@ #include #pragma alloca #else /* not MSDOS, or __TURBOC__, or _AIX */ +#ifdef __hpux /* This is right for HPUX 10. */ +#include +#endif +#if 0 /* This was right for HPUX 9. + Unfortunately there is no clean way to distinguish. */ #ifdef __hpux #ifdef __cplusplus extern "C" { @@ -53,6 +58,7 @@ void *alloca (unsigned int); void *alloca (); #endif /* not __cplusplus */ #endif /* __hpux */ +#endif /* 0 */ #endif /* not _AIX */ #endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc. */ diff --git a/src/bison.s1 b/src/bison.s1 index c25067a7..e3bcfb6d 100644 --- a/src/bison.s1 +++ b/src/bison.s1 @@ -44,6 +44,11 @@ #include #pragma alloca #else /* not MSDOS, or __TURBOC__, or _AIX */ +#ifdef __hpux /* This is right for HPUX 10. */ +#include +#endif +#if 0 /* This was right for HPUX 9. + Unfortunately there is no clean way to distinguish. */ #ifdef __hpux #ifdef __cplusplus extern "C" { @@ -53,6 +58,7 @@ void *alloca (unsigned int); void *alloca (); #endif /* not __cplusplus */ #endif /* __hpux */ +#endif /* 0 */ #endif /* not _AIX */ #endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc. */ diff --git a/src/bison.simple b/src/bison.simple index c25067a7..e3bcfb6d 100644 --- a/src/bison.simple +++ b/src/bison.simple @@ -44,6 +44,11 @@ #include #pragma alloca #else /* not MSDOS, or __TURBOC__, or _AIX */ +#ifdef __hpux /* This is right for HPUX 10. */ +#include +#endif +#if 0 /* This was right for HPUX 9. + Unfortunately there is no clean way to distinguish. */ #ifdef __hpux #ifdef __cplusplus extern "C" { @@ -53,6 +58,7 @@ void *alloca (unsigned int); void *alloca (); #endif /* not __cplusplus */ #endif /* __hpux */ +#endif /* 0 */ #endif /* not _AIX */ #endif /* not MSDOS, or __TURBOC__ */ #endif /* not sparc. */ -- 2.45.2