From 32c081fec770c80f47fd22bb078e13fa449ab289 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?= <grubba@grubba.org> Date: Sat, 4 Jul 1998 03:06:39 +0200 Subject: [PATCH] Improved LARGEFILE support. Rev: src/fd_control.c:1.19 --- src/fd_control.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/fd_control.c b/src/fd_control.c index 68b0b7a014..81b4d4de8c 100644 --- a/src/fd_control.c +++ b/src/fd_control.c @@ -9,12 +9,18 @@ #include "error.h" #include "fdlib.h" -RCSID("$Id: fd_control.c,v 1.18 1998/06/08 12:48:24 grubba Exp $"); +RCSID("$Id: fd_control.c,v 1.19 1998/07/04 01:06:39 grubba Exp $"); #else -#define _FILE_OFFSET_BITS 64 -#define _LARGEFILE_SOURCE 1 -#define _LARGEFILE64_SOURCE 1 +#ifndef _LARGEFILE_SOURCE +# define _FILE_OFFSET_BITS 64 +# define _LARGEFILE_SOURCE 1 +# define _LARGEFILE64_SOURCE 1 +#endif /* !_LARGERFILE_SOURCE */ +/* HPUX needs these too... */ +#ifndef __STDC_EXT__ +# define __STDC_EXT__ +#endif /* !__STDC_EXT__ */ #include <sys/types.h> #undef DEBUG #define fd_ioctl ioctl -- GitLab