From a0a3d5e9fb7405e286e464fcbef6d32d1bb1d246 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 9 Jun 2005 18:47:07 +0000 Subject: [PATCH] LFS mode for yaz-marcdump so that it can read large ISO2709 files --- util/marcdump.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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) { -- 1.7.10.4