From d1c300e5b78d079be5271c85ee8f7971eb02696e 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 20:53:03 +0200 Subject: [PATCH] Now has fallback to the L_ macros if the SEEK_ macros aren't defined. Rev: src/modules/Pipe/pipe.c:1.23 --- src/modules/Pipe/pipe.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/modules/Pipe/pipe.c b/src/modules/Pipe/pipe.c index 7b6523cfe4..cf5a18b0eb 100644 --- a/src/modules/Pipe/pipe.c +++ b/src/modules/Pipe/pipe.c @@ -4,6 +4,10 @@ #include <sys/types.h> #include <sys/stat.h> +#ifdef HAVE_SYS_FILE_H +#include <sys/file.h> +#endif /* HAVE_SYS_FILE_H */ + #include <errno.h> #ifdef HAVE_SYS_MMAN_H @@ -22,7 +26,7 @@ #include <fcntl.h> #include "global.h" -RCSID("$Id: pipe.c,v 1.22 1998/05/17 18:37:12 grubba Exp $"); +RCSID("$Id: pipe.c,v 1.23 1998/05/17 18:53:03 grubba Exp $"); #include "threads.h" #include "stralloc.h" @@ -50,13 +54,25 @@ RCSID("$Id: pipe.c,v 1.22 1998/05/17 18:37:12 grubba Exp $"); */ #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 */ -- GitLab