[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Dont define LARGEFILE64_SOURCE



For the same reason that we dont define __USE_FILE_OFFSET64 we also
shouldn't define LARGEFILE64_SOURCE.

Patch attached.

Alan.
Index: include/features.h.in
===================================================================
RCS file: /mint/mintlib/include/features.h.in,v
retrieving revision 1.7
diff -u -r1.7 features.h.in
--- include/features.h.in	27 Feb 2008 09:45:39 -0000	1.7
+++ include/features.h.in	15 Jun 2008 18:49:24 -0000
@@ -63,6 +63,8 @@
    __USE_XOPEN		Define XPG things.
    __USE_XOPEN_EXTENDED	Define X/Open Unix things.
    __USE_UNIX98		Define Single Unix V2 things.
+   __USE_XOPEN2K        Define XPG6 things.
+   __USE_LARGEFILE	Define correct standard I/O things.
    __USE_LARGEFILE64	Define LFS things with separate names.
    __USE_FILE_OFFSET64	Define 64bit interface as default.
    __USE_BSD		Define 4.3BSD things.
@@ -155,8 +157,10 @@
 # define _XOPEN_SOURCE	500
 # undef	 _XOPEN_SOURCE_EXTENDED
 # define _XOPEN_SOURCE_EXTENDED	1
-# undef  _LARGEFILE64_SOURCE
-# define _LARGEFILE64_SOURCE 1
+# ifndef __MINT__ /* not yet */
+#  undef  _LARGEFILE64_SOURCE
+#  define _LARGEFILE64_SOURCE 1
+# endif
 # undef	 _BSD_SOURCE
 # define _BSD_SOURCE	1
 # undef	 _SVID_SOURCE