rpcd: Switch to nanosleep
authorRosen Penev <rosenp@gmail.com>
Thu, 18 Jul 2019 17:54:44 +0000 (10:54 -0700)
committerJo-Philipp Wich <jo@mein.io>
Tue, 3 Sep 2019 09:26:51 +0000 (11:26 +0200)
commit604db20aa6b1e573ddc0d5d3662988244701b13f
treedde261d5adf4553abf94fc8177e051f9c37e845c
parent821045f6ce341fdc39fc8dafc765411b0f4954d1
rpcd: Switch to nanosleep

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>
sys.c