From c4b85ba704a1b5257dc82786a84f676bacb7b027 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Thu, 20 Aug 2020 17:41:54 +0000 Subject: Bugfix: Define and use HAVE_FDATASYNC correctly outside LevelDB --- src/util/system.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util') 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; -- cgit v1.2.3