summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-10-12 02:42:06 +0000
committerJim Meyering <jim@meyering.net>1993-10-12 02:42:06 +0000
commitd463bda0668397cf570d6ca3c1f72dc1110eef43 (patch)
tree770822185c894d920d786144794e57f1019e1e0e /lib
parent87fa23e6417d7d1938b72e872d779ae7225a5aa4 (diff)
downloadcoreutils-d463bda0668397cf570d6ca3c1f72dc1110eef43.tar.xz
merge with 1.8.1c
Diffstat (limited to 'lib')
-rw-r--r--lib/getdate.y19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/getdate.y b/lib/getdate.y
index e15a886a0..df1a08a98 100644
--- a/lib/getdate.y
+++ b/lib/getdate.y
@@ -31,6 +31,25 @@
#undef static
#endif
+/* The following block of alloca-related preprocessor directives is here
+ solely to allow compilation by non GNU-C compilers of the C parser
+ produced from this file by old versions of bison. Newer versions of
+ bison include a block similar to this one in bison.simple. */
+
+#ifdef __GNUC__
+#define alloca __builtin_alloca
+#else
+#ifdef HAVE_ALLOCA_H
+#include <alloca.h>
+#else
+#ifdef _AIX
+ #pragma alloca
+#else
+void *alloca ();
+#endif
+#endif
+#endif
+
#ifdef __GNUC__
#undef alloca
#define alloca __builtin_alloca