aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-28 02:18:41 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 23:25:46 +0200
commite2bf48f0f4b2650932f6cde447e7ea2b422c43a9 (patch)
treeac1a887e72220be6528a6d6b5dc1dd4a7b8acfd2 /src
parent07f99a86578bee9e7ac0dd0114b89bf983a92d9b (diff)
Fix build for mingw
Diffstat (limited to 'src')
-rw-r--r--src/FileUtils.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/FileUtils.cpp b/src/FileUtils.cpp
index 28bce29..2258081 100644
--- a/src/FileUtils.cpp
+++ b/src/FileUtils.cpp
@@ -3,6 +3,11 @@
using namespace std;
+#ifdef __MINGW32__
+#define flockfile(fp)
+#define funlockfile(fp)
+#endif
+
namespace odhtdb
{
OwnedByteArray fileGetContent(const boost::filesystem::path &filepath)