diff options
author | Daniel Mierswa | 2009-08-17 21:22:02 +0200 |
---|---|---|
committer | Karel Zak | 2009-08-21 09:58:17 +0200 |
commit | 437fa54f0516b39b633937fc20ff24c0dcc44bd7 (patch) | |
tree | 618a387d9c0eee684c6ed41a9c280817108e69ad /hwclock/kd.c | |
parent | hwclocks: use time limit for KDGHWCLK busy wait (diff) | |
download | kernel-qcow2-util-linux-437fa54f0516b39b633937fc20ff24c0dcc44bd7.tar.gz kernel-qcow2-util-linux-437fa54f0516b39b633937fc20ff24c0dcc44bd7.tar.xz kernel-qcow2-util-linux-437fa54f0516b39b633937fc20ff24c0dcc44bd7.zip |
replace usleep() for systems that don't have them
This function is marked obsolete in POSIX.1-2001 and removed in
POSIX.1-2008.
Conditionally replaced with nanosleep().
Signed-off-by: Daniel Mierswa <impulze@impulze.org>
Diffstat (limited to 'hwclock/kd.c')
-rw-r--r-- | hwclock/kd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hwclock/kd.c b/hwclock/kd.c index b0e55d1c5..3da87cafd 100644 --- a/hwclock/kd.c +++ b/hwclock/kd.c @@ -17,6 +17,7 @@ probe_for_kd_clock() { #include <sys/ioctl.h> #include "nls.h" +#include "usleep.h" static int con_fd = -1; /* opened by probe_for_kd_clock() */ /* never closed */ |