diff --git a/chaos_micro_unit_toolkit/external_lib/bson/bson/bson-clock.c b/chaos_micro_unit_toolkit/external_lib/bson/bson/bson-clock.c
index 5260eb1820b2a7ca15ff54fb14abc3206f948438..8c547015551d008b7f067cbc94b184bb7772aed5 100644
--- a/chaos_micro_unit_toolkit/external_lib/bson/bson/bson-clock.c
+++ b/chaos_micro_unit_toolkit/external_lib/bson/bson/bson-clock.c
@@ -29,8 +29,10 @@
 
 #if defined(BSON_HAVE_CLOCK_GETTIME)
 #include <time.h>
+#ifndef _WIN32
 #include <sys/time.h>
 #endif
+#endif
 
 #include "bson-clock.h"
 
diff --git a/chaos_micro_unit_toolkit/external_lib/bson/bson/bson-config.h b/chaos_micro_unit_toolkit/external_lib/bson/bson/bson-config.h
index 02b26ffb0b5273100a2409d3bebf10f4122d5ddd..13dc61c287e70aac8d6dea55ce38e0e000d99354 100644
--- a/chaos_micro_unit_toolkit/external_lib/bson/bson/bson-config.h
+++ b/chaos_micro_unit_toolkit/external_lib/bson/bson/bson-config.h
@@ -32,8 +32,12 @@
 #if defined (__unix__) || (defined (__APPLE__) && defined (__MACH__))
 #define BSON_OS 1
 #else
+#ifdef _WIN32
+#define BSON_OS 2
+#else
 #define BSON_OS 0
 #endif
+#endif
 
 
 /*