Fix upgrade tool build on windows.

This commit is contained in:
Daniel Kirchner
2020-02-06 10:49:15 +01:00
parent a41f5e91f6
commit 9b8e3800bb
+9
View File
@@ -25,6 +25,15 @@
#include <boost/filesystem/operations.hpp>
#include <boost/algorithm/string.hpp>
#ifdef _WIN32 // windows
#include <io.h>
#define isatty _isatty
#define fileno _fileno
#else // unix
#include <unistd.h>
#endif
namespace po = boost::program_options;
namespace fs = boost::filesystem;