summaryrefslogtreecommitdiffstats
path: root/sys-utils/rtcwake.c
diff options
context:
space:
mode:
authorDaniel Mierswa2009-08-17 21:22:02 +0200
committerKarel Zak2009-08-21 09:58:17 +0200
commit437fa54f0516b39b633937fc20ff24c0dcc44bd7 (patch)
tree618a387d9c0eee684c6ed41a9c280817108e69ad /sys-utils/rtcwake.c
parenthwclocks: use time limit for KDGHWCLK busy wait (diff)
downloadkernel-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 'sys-utils/rtcwake.c')
-rw-r--r--sys-utils/rtcwake.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c
index 4b843736d..d75a69f3c 100644
--- a/sys-utils/rtcwake.c
+++ b/sys-utils/rtcwake.c
@@ -36,6 +36,7 @@
#include <linux/rtc.h>
#include "nls.h"
+#include "usleep.h"
/* constants from legacy PC/AT hardware */
#define RTC_PF 0x40