diff options
author | Chun Kuan Lee <ken2812221@gmail.com> | 2018-07-25 17:33:22 +0800 |
---|---|---|
committer | Chun Kuan Lee <ken2812221@gmail.com> | 2018-08-28 00:55:13 +0800 |
commit | 1661a472b8245eb4588fedbf19c9ed07a41e7602 (patch) | |
tree | 6a9c19af730f79a66e4ba3524dbec5514353cb48 /src/init.cpp | |
parent | f180e81d5780805a28bcc71c2bb6b16076336c3c (diff) |
add unicode compatible file_lock for Windows
boost::interprocess::file_lock cannot open the files that contain characters which cannot be parsed by the user's code page on Windows.
This commit add a new class to handle those specific file for Windows.
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 2131a6adc0..bd330459f6 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -51,13 +51,13 @@ #ifndef WIN32 #include <signal.h> +#include <sys/stat.h> #endif #include <boost/algorithm/string/classification.hpp> #include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string/split.hpp> #include <boost/bind.hpp> -#include <boost/interprocess/sync/file_lock.hpp> #include <boost/thread.hpp> #include <openssl/crypto.h> |