Merge pull request #8255 from ethereum/upgradeToolWindows

Fix upgrade tool build on windows.
This commit is contained in:
Daniel Kirchner
2020-02-06 12:31:54 +01:00
committed by GitHub
+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;