diff --git a/src/object.c b/src/object.c index 6f864acef19ad4ea4879988a0c55c8f928e0a224..afe58ce5076d3e3df454b8858407b5c71fffde07 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;