[ofw] [PATCH] allow for local definition of sleep()
Stan C. Smith
stan.smith at intel.com
Tue Oct 13 16:42:06 PDT 2009
signed-off-by: stan smith <stan.smith at intel.com>
--- a/inc/user/linux/unistd.h Tue Oct 13 16:24:54 2009
+++ b/inc/user/linux/unistd.h Tue Oct 13 16:01:13 2009
@@ -36,7 +36,9 @@
#include <stdio.h>
-#define sleep(s) SleepEx(s * 1000, TRUE)
+#ifndef sleep
+#define sleep(sec) SleepEx((sec) * 1000, TRUE)
+#endif
static __inline int getdomainname(char *name, size_t len)
{
More information about the ofw
mailing list