diff --git a/src/modules/spider/accesseddb.c b/src/modules/spider/accesseddb.c
index e9633fa9b1792b36be0e7599cff8ed215e5f2ee0..58f88898a19cedab95f58d6704470c76991cc508 100644
--- a/src/modules/spider/accesseddb.c
+++ b/src/modules/spider/accesseddb.c
@@ -13,7 +13,7 @@
 #include "error.h"
 #include "builtin_functions.h"
 
-RCSID("$Id: accesseddb.c,v 1.14 1998/03/28 13:53:27 grubba Exp $");
+RCSID("$Id: accesseddb.c,v 1.15 1998/05/17 19:20:32 grubba Exp $");
 
 #include <stdio.h>
 
@@ -53,12 +53,39 @@ RCSID("$Id: accesseddb.c,v 1.14 1998/03/28 13:53:27 grubba Exp $");
 #include <netdb.h>
 #endif
 
+#ifdef HAVE_SYS_FILE_H
+#include <sys/file.h>
+#endif /* HAVE_SYS_FILE_H */
+
 #include <sys/stat.h>
 #include <fcntl.h>
 
 #include "dmalloc.h"
 #include "accesseddb.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 */
+
+
 #define COOKIE 0x11223344
 /* Must be (2**n)-1 */
 #define CACHESIZE 2047