From 54166e67c4f4f242ae032f068e227809bca60d70 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sun, 17 May 1998 22:43:01 +0200
Subject: [PATCH] Added fallbacks for the SEEK_ macros.

Rev: src/object.c:1.51
---
 src/object.c | 30 +++++++++++++++++++++++++++++-
 1 file changed, 29 insertions(+), 1 deletion(-)

diff --git a/src/object.c b/src/object.c
index 6f864acef1..afe58ce507 100644
--- a/src/object.c
+++ b/src/object.c
@@ -4,7 +4,7 @@
 ||| See the files COPYING and DISCLAIMER for more information.
 \*/
 #include "global.h"
-RCSID("$Id: object.c,v 1.50 1998/05/15 19:29:10 grubba Exp $");
+RCSID("$Id: object.c,v 1.51 1998/05/17 20:43:01 grubba Exp $");
 #include "object.h"
 #include "dynamic_buffer.h"
 #include "interpret.h"
@@ -23,8 +23,36 @@ RCSID("$Id: object.c,v 1.50 1998/05/15 19:29:10 grubba Exp $");
 #include "builtin_functions.h"
 #include "cyclic.h"
 
+#ifdef HAVE_SYS_FILE_H
+#include <sys/file.h>
+#endif /* HAVE_SYS_FILE_H */
+
 #include "dmalloc.h"
 
+
+#ifndef SEEK_SET
+#ifdef L_SET
+#define SEEK_SET	L_SET
+#else /* !L_SET */
+#define SEEK_SET	0
+#endif /* L_SET */
+#endif /* SEEK_SET */
+#ifndef SEEK_CUR
+#ifdef L_INCR
+#define SEEK_SET	L_INCR
+#else /* !L_INCR */
+#define SEEK_CUR	1
+#endif /* L_INCR */
+#endif /* SEEK_CUR */
+#ifndef SEEK_END
+#ifdef L_XTND
+#define SEEK_END	L_XTND
+#else /* !L_XTND */
+#define SEEK_END	2
+#endif /* L_XTND */
+#endif /* SEEK_END */
+
+
 struct object *master_object = 0;
 struct program *master_program =0;
 struct object *first_object;
-- 
GitLab