need unistd.h
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 28 Aug 2009 17:02:34 +0000 (17:02 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 28 Aug 2009 17:02:34 +0000 (17:02 +0000)
examples/fem/matrix/pgm.C

index bd5d3cef772eaa536f945c8419f889baca1e7083..80a96d2886ecd17697d1b6d73e6ac5917533bbfa 100644 (file)
@@ -12,6 +12,10 @@ Orion Sky Lawlor, olawlor@acm.org, 1/27/2003
 #include "netfem.h"
 #include "ifemc.h"
 
+#if CMK_HAS_SLEEP
+#include <unistd.h>
+#endif
+
 #if CMK_CC_PGCC
 #undef offsetof
 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)