Fix Windows build issues

This commit is contained in:
sfc-gh-tclinkenbeard 2021-01-26 13:41:37 -08:00
parent bb1dd21c22
commit 27314b111c
2 changed files with 6 additions and 4 deletions

View File

@ -18,6 +18,9 @@
* limitations under the License.
*/
#define BOOST_SYSTEM_NO_LIB
#define BOOST_DATE_TIME_NO_LIB
#define BOOST_REGEX_NO_LIB
#include <boost/asio.hpp>
#include <boost/range.hpp>
#include <thread>
@ -32,8 +35,6 @@
using namespace boost::asio;
#define BOOST_DATE_TIME_NO_LIB
static io_service ios;
class SimExternalConnectionImpl {

View File

@ -24,6 +24,9 @@
#include <vector>
#include "fdbrpc/simulator.h"
#define BOOST_SYSTEM_NO_LIB
#define BOOST_DATE_TIME_NO_LIB
#define BOOST_REGEX_NO_LIB
#include "fdbrpc/SimExternalConnection.h"
#include "flow/ActorCollection.h"
#include "flow/IRandom.h"
@ -46,8 +49,6 @@
#include "fdbrpc/AsyncFileWriteChecker.h"
#include "flow/actorcompiler.h" // This must be the last #include.
#define BOOST_DATE_TIME_NO_LIB
bool simulator_should_inject_fault( const char* context, const char* file, int line, int error_code ) {
if (!g_network->isSimulated()) return false;