diff --git a/components/common/cpp/src/uri.cpp b/components/common/cpp/src/uri.cpp
index cdcc49633284f1c66930f55fe5b92f345c2fee37..725ba356baea9165cd7eabc8697419265c241405 100644
--- a/components/common/cpp/src/uri.cpp
+++ b/components/common/cpp/src/uri.cpp
@@ -5,6 +5,8 @@
 
 #ifndef WIN32
 #include <unistd.h>
+#else
+#include <windows.h>
 #endif
 
 using ftl::URI;