The crude loop I wrote to come up with this changeset: find -L package/feeds/packages/ -name patches | \ sed 's/patches$/refresh/' | sort | xargs make Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
20 lines
430 B
Diff
20 lines
430 B
Diff
--- a/lib/libutil/sleep.c
|
|
+++ b/lib/libutil/sleep.c
|
|
@@ -8,7 +8,7 @@
|
|
# include <windows.h>
|
|
# include <process.h>
|
|
#else
|
|
-# include <unistd.h>
|
|
+# include <time.h>
|
|
#endif
|
|
|
|
|
|
@@ -18,6 +18,7 @@ xmlrpc_millisecond_sleep(unsigned int co
|
|
#if MSVCRT
|
|
SleepEx(milliseconds, true);
|
|
#else
|
|
- usleep(milliseconds * 1000);
|
|
+ const struct timespec req = {0, milliseconds * 1000 * 1000};
|
|
+ nanosleep(&req, NULL);
|
|
#endif
|
|
}
|