[ofw] RE: [PATCH] allow for local definition of sleep()
Sean Hefty
sean.hefty at intel.com
Wed Oct 14 22:07:32 PDT 2009
>--- 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
I would think we would want to remove the local definitions in favor of the
common one. unistd.h doesn't support local definitions of sleep.
More information about the ofw
mailing list