diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-19 22:57:08 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-19 22:57:08 +0200 |
commit | 0c0292fec1304d25d00f01b307c88ec2066f29f5 (patch) | |
tree | 09f69084a825b827fd7f47271a25f2b63d1052ee /sinksh | |
parent | c12b0d0ef846518db2d9c44676792a4bfc4ffe99 (diff) | |
download | sink-0c0292fec1304d25d00f01b307c88ec2066f29f5.tar.gz sink-0c0292fec1304d25d00f01b307c88ec2066f29f5.zip |
Windows compat
Diffstat (limited to 'sinksh')
-rw-r--r-- | sinksh/main.cpp | 4 | ||||
-rw-r--r-- | sinksh/repl/replStates.cpp | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/sinksh/main.cpp b/sinksh/main.cpp index 84f532d..717d937 100644 --- a/sinksh/main.cpp +++ b/sinksh/main.cpp | |||
@@ -17,7 +17,11 @@ | |||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #ifdef Q_OS_WIN | ||
21 | #include <io.h> | ||
22 | #else | ||
20 | #include <unistd.h> | 23 | #include <unistd.h> |
24 | #endif | ||
21 | 25 | ||
22 | #include <QCoreApplication> | 26 | #include <QCoreApplication> |
23 | #include <QDebug> | 27 | #include <QDebug> |
diff --git a/sinksh/repl/replStates.cpp b/sinksh/repl/replStates.cpp index 0cd2620..18081df 100644 --- a/sinksh/repl/replStates.cpp +++ b/sinksh/repl/replStates.cpp | |||
@@ -19,7 +19,6 @@ | |||
19 | 19 | ||
20 | #include "replStates.h" | 20 | #include "replStates.h" |
21 | 21 | ||
22 | #include <unistd.h> | ||
23 | #include <iostream> | 22 | #include <iostream> |
24 | 23 | ||
25 | #include <readline/readline.h> | 24 | #include <readline/readline.h> |