[lttng-dev] [Babeltrace RFC PATCH 17/28] Add MinGW implementation of sleep

Ikaheimonen, JP jp_ikaheimonen at mentor.com
Thu May 2 07:58:44 EDT 2013


---
 include/babeltrace/compat/unistd.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/babeltrace/compat/unistd.h b/include/babeltrace/compat/unistd.h
index f275b22..448e047 100644
--- a/include/babeltrace/compat/unistd.h
+++ b/include/babeltrace/compat/unistd.h
@@ -16,6 +16,8 @@ int fpathconf (int fd, int name)
 	return MAX_PATH;
 }
 
+#define sleep(x) Sleep(1000 * (x))
+
 #endif
 
 #endif
\ No newline at end of file
-- 
1.8.1.msysgit.1




More information about the lttng-dev mailing list