LFS mode for yaz-marcdump so that it can read large ISO2709 files
authorAdam Dickmeiss <adam@indexdata.dk>
Thu, 9 Jun 2005 18:47:07 +0000 (18:47 +0000)
committerAdam Dickmeiss <adam@indexdata.dk>
Thu, 9 Jun 2005 18:47:07 +0000 (18:47 +0000)
util/marcdump.c

index ca9b324..0108bc6 100644 (file)
@@ -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 <config.h>
 #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)
            {