summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/package.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2013-08-27 17:04:44 +0200
committerAdam Borowski <kilobyte@angband.pl>2013-08-27 22:20:00 +0200
commitbb6b2d10dd37bdc8f91ac81ee6396fa5021b3bac (patch)
tree20056499e095fb1f909f92ddc3aac1d25bd9ea34 /crawl-ref/source/package.cc
parenta9b17d11089b19f0f6098d9b3dbc5e667bfe513c (diff)
downloadcrawl-ref-bb6b2d10dd37bdc8f91ac81ee6396fa5021b3bac.tar.gz
crawl-ref-bb6b2d10dd37bdc8f91ac81ee6396fa5021b3bac.zip
Don't fsync in debug builds.
All it protects against is save corruption during power loss.
Diffstat (limited to 'crawl-ref/source/package.cc')
-rw-r--r--crawl-ref/source/package.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/crawl-ref/source/package.cc b/crawl-ref/source/package.cc
index b67939f4e0..be849f6529 100644
--- a/crawl-ref/source/package.cc
+++ b/crawl-ref/source/package.cc
@@ -35,15 +35,10 @@ Notes:
#include "errors.h"
#include "syscalls.h"
-#ifndef DGAMELAUNCH
+#if !defined(DGAMELAUNCH) && !defined(__ANDROID__) && !defined(DEBUG_DIAGNOSTICS)
#define DO_FSYNC
#endif
-// DO_FSYNC doesn't work on Android
-#ifdef __ANDROID__
-#undef DO_FSYNC
-#endif
-
// debugging defines
#undef FSCK_VERBOSE
#undef COSTLY_ASSERTS