[GRASS-SVN] r74466 - grass/trunk/lib/raster
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun May 5 12:36:19 PDT 2019
Author: mmetz
Date: 2019-05-05 12:36:19 -0700 (Sun, 05 May 2019)
New Revision: 74466
Modified:
grass/trunk/lib/raster/close.c
Log:
libraster: no fsync check for corrupt raster data on windows
Modified: grass/trunk/lib/raster/close.c
===================================================================
--- grass/trunk/lib/raster/close.c 2019-05-05 19:06:56 UTC (rev 74465)
+++ grass/trunk/lib/raster/close.c 2019-05-05 19:36:19 UTC (rev 74466)
@@ -51,10 +51,12 @@
* after you are done writing all your data.
*/
+#ifndef __MINGW32__
if (fsync(fd)) {
G_warning(_("Unable to flush file %s for raster map %s: %s"),
element, name, strerror(errno));
}
+#endif
if (close(fd)) {
G_warning(_("Unable to close file %s for raster map %s: %s"),
element, name, strerror(errno));
More information about the grass-commit
mailing list