X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fposixtm.y;h=2fef9f0f0d7de139aabff94e4aed751ae9d498e8;hb=0676dd09e5a504b24a26bff1c24505061a3e3c0b;hp=0967667b8d54f02d14eb39201322ad0a6defe9df;hpb=317f6a262e98366cc859bb5ca7bb7a79a9a20548;p=gnulib.git diff --git a/lib/posixtm.y b/lib/posixtm.y index 0967667b8..2fef9f0f0 100644 --- a/lib/posixtm.y +++ b/lib/posixtm.y @@ -17,6 +17,23 @@ /* Written by Jim Kingdon and David MacKenzie. */ %{ + +#ifdef HAVE_CONFIG_H +#if defined (CONFIG_BROKETS) +/* We use instead of "config.h" so that a compilation + using -I. -I$srcdir will use ./config.h rather than $srcdir/config.h + (which it would do because it found this file in $srcdir). */ +#include +#else +#include "config.h" +#endif +#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 @@ -26,7 +43,7 @@ #ifdef _AIX #pragma alloca #else -char *alloca (); +void *alloca (); #endif #endif #endif