Fix Windows build issues
This commit is contained in:
parent
bb1dd21c22
commit
27314b111c
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue