[GRASS-SVN] r43080 - grass/trunk/include

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 12 14:12:28 EDT 2010


Author: mmetz
Date: 2010-08-12 18:12:28 +0000 (Thu, 12 Aug 2010)
New Revision: 43080

Modified:
   grass/trunk/include/config.h.in
Log:
first step towards LFS for wingrass

Modified: grass/trunk/include/config.h.in
===================================================================
--- grass/trunk/include/config.h.in	2010-08-12 18:04:54 UTC (rev 43079)
+++ grass/trunk/include/config.h.in	2010-08-12 18:12:28 UTC (rev 43080)
@@ -278,10 +278,20 @@
 #undef HAVE_FSEEKO		/* Do we need this? If HAVE_LARGEFILES is  */
 				/* defined, we have fseeko()		   */
 
-#ifdef __MINGW32__
+#if defined(__MINGW32__) && defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS == 64
+/* add/remove as needed */
 #define off_t off64_t
+#define HAVE_FSEEKO
 #define fseeko fseeko64
 #define ftello ftello64
+#define lseek lseek64
+#define tell tell64
+#define seek seek64
+#define stat stat64
+#define fstat fstat64
+typedef struct _stati64 STRUCT_STAT;
+#else
+typedef struct stat STRUCT_STAT;
 #endif
 
 #endif	/* HAVE_LARGEFILES */



More information about the grass-commit mailing list