X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=bfile%2Fmfile.c;h=ce4279afc966159ca3bed910e565041b6a055a3f;hb=6d3b83ae7e008f2d61326051b03f7f07d3cc2ef0;hp=bbbc1cfc0daa227bffc6418be65c510f31b89c0b;hpb=5437b50633032595afe6f87dc0f989bc92a5aea8;p=idzebra-moved-to-github.git diff --git a/bfile/mfile.c b/bfile/mfile.c index bbbc1cf..ce4279a 100644 --- a/bfile/mfile.c +++ b/bfile/mfile.c @@ -1,6 +1,6 @@ -/* $Id: mfile.c,v 1.56 2004-11-19 10:26:53 heikki Exp $ - Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003 - Index Data Aps +/* $Id: mfile.c,v 1.62 2005-06-14 20:28:53 adam Exp $ + Copyright (C) 1995-2005 + Index Data ApS This file is part of the Zebra server. @@ -32,7 +32,8 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #ifdef WIN32 #include -#else +#endif +#if HAVE_UNISTD_H #include #endif #include @@ -43,8 +44,9 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include -#include -#include +#include +#include +#include "mfile.h" static int scan_areadef(MFile_area ma, const char *ad, const char *base) { @@ -160,7 +162,7 @@ static zint file_position(MFile mf, zint pos, int offset) if (!mf->wr && errno == ENOENT && off == 0) return -2; yaz_log (YLOG_WARN|YLOG_ERRNO, "Failed to open %s", mf->files[c].path); - return -1; + return -1; } } ps = pos - off;