summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmCTest.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx
index 88cc4aa..f362185 100644
--- a/Source/cmCTest.cxx
+++ b/Source/cmCTest.cxx
@@ -35,6 +35,11 @@
#include <math.h>
#include <float.h>
+// needed for sleep
+#if !defined(_WIN32)
+# include <unistd.h>
+#endif
+
#include <memory> // auto_ptr
#define SAFEDIV(x,y) (((y)!=0)?((x)/(y)):(0))