From: Adam Dickmeiss Date: Sun, 14 Jan 2001 13:41:06 +0000 (+0000) Subject: Added include of sys/types.h for UNIX to get definition of off_t. X-Git-Tag: ZEBRA.1.1~41 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=1d9c8aefb2de3a4668090ae4c7ec7193c9301bdd;p=idzebra-moved-to-github.git Added include of sys/types.h for UNIX to get definition of off_t. --- diff --git a/include/mfile.h b/include/mfile.h index ee8231f..865914c 100644 --- a/include/mfile.h +++ b/include/mfile.h @@ -3,7 +3,7 @@ * All rights reserved. * Sebastian Hammer, Adam Dickmeiss * - * $Id: mfile.h,v 1.15 2000-04-17 14:22:00 adam Exp $ + * $Id: mfile.h,v 1.16 2001-01-14 13:41:06 adam Exp $ */ #ifndef MFILE_H @@ -12,6 +12,12 @@ #include #include +#ifdef WIN32 +typedef long off_t; +#else +#include +#endif + #ifndef FILENAME_MAX #include #define FILENAME_MAX MAXPATHLEN @@ -26,9 +32,6 @@ YAZ_BEGIN_CDECL #define mf_blocksize(mf) ((mf)->blocksize) -#ifdef WIN32 -typedef long off_t; -#endif typedef struct mf_dir {