Commit d0b07893 authored by Jan Včelák's avatar Jan Včelák 🚀

tests: replace clock_nanosleep() with nanosleep()

For compatibility with BSDs
parent 01b00cc4
......@@ -68,7 +68,7 @@ void* thr_action(void *arg)
/* Sleep for 100ms. */
struct timespec ts = { .tv_nsec = 1e8 };
clock_nanosleep(CLOCK_REALTIME, 0, &ts, NULL);
nanosleep(&ts, NULL);
/* Write pattern. */
char pattern = WRITE_PATTERN;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment