From: Adam Dickmeiss Date: Thu, 9 Jun 2005 18:47:07 +0000 (+0000) Subject: LFS mode for yaz-marcdump so that it can read large ISO2709 files X-Git-Tag: YAZXF2.1.4.2.2.release~34 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=a0a3d5e9fb7405e286e464fcbef6d32d1bb1d246;p=yaz-moved-to-github.git LFS mode for yaz-marcdump so that it can read large ISO2709 files --- diff --git a/util/marcdump.c b/util/marcdump.c index ca9b324..0108bc6 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -2,9 +2,11 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdump.c,v 1.30 2005-04-20 13:17:29 adam Exp $ + * $Id: marcdump.c,v 1.31 2005-06-09 18:47:07 adam Exp $ */ +#define _FILE_OFFSET_BITS 64 + #if HAVE_CONFIG_H #include #endif @@ -138,7 +140,7 @@ int main (int argc, char **argv) case 'c': if (cfile) fclose (cfile); - cfile = fopen (arg, "w"); + cfile = fopen(arg, "w"); break; case 'x': xml = YAZ_MARC_SIMPLEXML; @@ -162,7 +164,7 @@ int main (int argc, char **argv) libxml_dom_test = 1; break; case 0: - inf = fopen (arg, "rb"); + inf = fopen(arg, "rb"); count = 0; if (!inf) {