From: Richard M. Stallman Date: Tue, 22 Apr 1997 22:23:48 +0000 (+0000) Subject: [__hpux]: Include alloca.h (right for HPUX 10) X-Git-Tag: GNU_ORIG~12 X-Git-Url: https://git.saurik.com/bison.git/commitdiff_plain/009b94d4211782f410efcbc8b357b9cc691b6612?ds=sidebyside [__hpux]: Include alloca.h (right for HPUX 10) instead of declaring alloca (right for HPUX 9). --- 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. */