diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-19 22:44:57 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-19 22:44:57 +0200 |
commit | c12b0d0ef846518db2d9c44676792a4bfc4ffe99 (patch) | |
tree | 634444190b8e0e1decb9168756e5cd0671023932 /common | |
parent | 5d654880ee08b44979cb17ba6ad6b7bf140294e5 (diff) | |
download | sink-c12b0d0ef846518db2d9c44676792a4bfc4ffe99.tar.gz sink-c12b0d0ef846518db2d9c44676792a4bfc4ffe99.zip |
Windows compat
Diffstat (limited to 'common')
-rw-r--r-- | common/log.cpp | 5 | ||||
-rw-r--r-- | common/storage_lmdb.cpp | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/common/log.cpp b/common/log.cpp index e726cd5..55f6b1f 100644 --- a/common/log.cpp +++ b/common/log.cpp | |||
@@ -9,7 +9,12 @@ | |||
9 | #include <QMutex> | 9 | #include <QMutex> |
10 | #include <QMutexLocker> | 10 | #include <QMutexLocker> |
11 | #include <iostream> | 11 | #include <iostream> |
12 | #ifdef Q_OS_WIN | ||
13 | #include <io.h> | ||
14 | #include <process.h> | ||
15 | #else | ||
12 | #include <unistd.h> | 16 | #include <unistd.h> |
17 | #endif | ||
13 | #include <atomic> | 18 | #include <atomic> |
14 | #include <definitions.h> | 19 | #include <definitions.h> |
15 | #include <QThreadStorage> | 20 | #include <QThreadStorage> |
diff --git a/common/storage_lmdb.cpp b/common/storage_lmdb.cpp index 49f30b5..227d52e 100644 --- a/common/storage_lmdb.cpp +++ b/common/storage_lmdb.cpp | |||
@@ -32,6 +32,11 @@ | |||
32 | #include <lmdb.h> | 32 | #include <lmdb.h> |
33 | #include "log.h" | 33 | #include "log.h" |
34 | 34 | ||
35 | #ifdef Q_OS_WIN | ||
36 | #include <BaseTsd.h> | ||
37 | typedef SSIZE_T ssize_t; | ||
38 | #endif | ||
39 | |||
35 | namespace Sink { | 40 | namespace Sink { |
36 | namespace Storage { | 41 | namespace Storage { |
37 | 42 | ||