Today I tried to use `cp' to copy a file larger than 2GB and
was surprised to get a `File too large' error.
Here's the patch I've applied to both coreutils and gnulib:

2005-08-25  Jim Meyering  <[EMAIL PROTECTED]>

        * open-safer.c: Include <config.h>.
        Otherwise, we'd lose LARGEFILE support in any file using
        e.g. "fcntl--.h"

Index: lib/open-safer.c
===================================================================
RCS file: /fetish/cu/lib/open-safer.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -p -u -r1.3 -r1.4
--- lib/open-safer.c    3 Jul 2005 06:43:07 -0000       1.3
+++ lib/open-safer.c    25 Aug 2005 16:28:18 -0000      1.4
@@ -17,6 +17,10 @@
 
 /* Written by Paul Eggert.  */
 
+#if HAVE_CONFIG_H
+# include <config.h>
+#endif
+
 #include "fcntl-safer.h"
 
 #include <fcntl.h>



_______________________________________________
bug-gnulib mailing list
bug-gnulib@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-gnulib

Reply via email to