diff --git a/fdbrpc/SimExternalConnection.actor.cpp b/fdbrpc/SimExternalConnection.actor.cpp index d44bdec8be..a9de15edba 100644 --- a/fdbrpc/SimExternalConnection.actor.cpp +++ b/fdbrpc/SimExternalConnection.actor.cpp @@ -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 #include #include @@ -32,8 +35,6 @@ using namespace boost::asio; -#define BOOST_DATE_TIME_NO_LIB - static io_service ios; class SimExternalConnectionImpl { diff --git a/fdbrpc/sim2.actor.cpp b/fdbrpc/sim2.actor.cpp index 22079324e4..cbb6c81c8c 100644 --- a/fdbrpc/sim2.actor.cpp +++ b/fdbrpc/sim2.actor.cpp @@ -24,6 +24,9 @@ #include #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;