diff --git a/src/modules/system/system.c b/src/modules/system/system.c
index df6a3833e881857464144ce797a928f33b7390f7..64db80eeaeb28e7c6a8b5c2da6e473acee955e68 100644
--- a/src/modules/system/system.c
+++ b/src/modules/system/system.c
@@ -2,7 +2,7 @@
 || This file is part of Pike. For copyright information see COPYRIGHT.
 || Pike is distributed under GPL, LGPL and MPL. See the file COPYING
 || for more information.
-|| $Id: system.c,v 1.180 2006/08/03 12:11:23 mast Exp $
+|| $Id: system.c,v 1.181 2006/08/03 12:58:46 mast Exp $
 */
 
 /*
@@ -24,6 +24,10 @@
 #include <windows.h>
 #endif
 
+#ifdef HAVE_IO_H
+#include <io.h>
+#endif
+
 #include "module_support.h"
 #include "las.h"
 #include "interpret.h"