diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-08-20 17:41:54 +0000 |
---|---|---|
committer | Luke Dashjr <luke-jr+git@utopios.org> | 2020-08-25 16:46:00 +0000 |
commit | c4b85ba704a1b5257dc82786a84f676bacb7b027 (patch) | |
tree | 7db5f43275d2cfdb9103cca6569e161792061b39 /src/util | |
parent | e9b30126545d6ddd8772363e4079d1e4908ad117 (diff) |
Bugfix: Define and use HAVE_FDATASYNC correctly outside LevelDB
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/system.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/system.cpp b/src/util/system.cpp index 7b74789b32..f5931b5ff1 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -1025,7 +1025,7 @@ bool FileCommit(FILE *file) return false; } #else - #if defined(HAVE_FDATASYNC) + #if HAVE_FDATASYNC if (fdatasync(fileno(file)) != 0 && errno != EINVAL) { // Ignore EINVAL for filesystems that don't support sync LogPrintf("%s: fdatasync failed: %d\n", __func__, errno); return false; |