# HG changeset patch # User Jim Meyering # Date 837492269 0 # Node ID 8e96368731cbe91e7a8c08747eb043454efe50cd # Parent df55b58a877c86c79764e3f35e4520107f671420 Update FSF address. Remove trailing blanks. diff -r df55b58a877c -r 8e96368731cb lib/posixtm.y --- a/lib/posixtm.y Tue Jul 16 03:06:32 1996 +0000 +++ b/lib/posixtm.y Tue Jul 16 04:44:29 1996 +0000 @@ -12,28 +12,50 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Written by Jim Kingdon and David MacKenzie. */ %{ + +#ifdef HAVE_CONFIG_H +#include +#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 sparc +#ifdef HAVE_ALLOCA_H #include #else #ifdef _AIX #pragma alloca #else -char *alloca (); +void *alloca (); #endif #endif #endif #include #include + +#ifdef TM_IN_SYS_TIME +#include +#else #include +#endif + +/* Some old versions of bison generate parsers that use bcopy. + That loses on systems that don't provide the function, so we have + to redefine it here. */ +#if !defined (HAVE_BCOPY) && defined (HAVE_MEMCPY) && !defined (bcopy) +#define bcopy(from, to, len) memcpy ((to), (from), (len)) +#endif #define YYDEBUG 1