diff --git a/base/src/TSystem.cxx b/base/src/TSystem.cxx
index b7e78130f1291119d07e2695283d78da9adb05df..d0a3ebbf3c54e0a0a96d6647aab5fab5dfd93768 100644
--- a/base/src/TSystem.cxx
+++ b/base/src/TSystem.cxx
@@ -23,6 +23,9 @@
 //                                                                      //
 //////////////////////////////////////////////////////////////////////////
 
+#ifdef WIN32
+#include <io.h>
+#endif
 #include <stdlib.h>
 #include <errno.h>