-
Rosen Penev authored
usleep has been deprecated by POSIX.1-2001 and removed in POSIX.1-2008. Fixes compilation when libc does not include usleep (optional with uClibc-ng). nanosleep also has the advantage of being more accurate. Signed-off-by: Rosen Penev <rosenp@gmail.com> [move timespec definition to the top of the function] Signed-off-by: Jo-Philipp Wich <jo@mein.io>
604db20a