summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1996-07-16 04:44:29 +0000
committerJim Meyering <jim@meyering.net>1996-07-16 04:44:29 +0000
commitf60dafdac24c12a34efb42dc3d26186b37b82834 (patch)
tree875c7a373873472d5266d0c95d1c25f17cf743a2 /lib
parentee9cf50a0f9fa7170613d2bcaf6281b4ebd37baa (diff)
downloadcoreutils-f60dafdac24c12a34efb42dc3d26186b37b82834.tar.xz
Update FSF address.
Remove trailing blanks.
Diffstat (limited to 'lib')
-rw-r--r--lib/posixtm.y30
1 files changed, 26 insertions, 4 deletions
diff --git a/lib/posixtm.y b/lib/posixtm.y
index bb5b40e75..947f594d2 100644
--- a/lib/posixtm.y
+++ b/lib/posixtm.y
@@ -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 <config.h>
+#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 <alloca.h>
#else
#ifdef _AIX
#pragma alloca
#else
-char *alloca ();
+void *alloca ();
#endif
#endif
#endif
#include <stdio.h>
#include <sys/types.h>
+
+#ifdef TM_IN_SYS_TIME
+#include <sys/time.h>
+#else
#include <time.h>
+#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