diff options
author | Daniel Mierswa <impulze@impulze.org> | 2009-08-17 21:22:02 +0200 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2009-08-21 09:58:17 +0200 |
commit | 437fa54f0516b39b633937fc20ff24c0dcc44bd7 (patch) | |
tree | 618a387d9c0eee684c6ed41a9c280817108e69ad /text-utils/tailf.c | |
parent | 102f5d89d942ee54c5b9a5adfb04df8a5b09177f (diff) | |
download | util-linux-old-437fa54f0516b39b633937fc20ff24c0dcc44bd7.tar.gz |
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 'text-utils/tailf.c')
-rw-r--r-- | text-utils/tailf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/text-utils/tailf.c b/text-utils/tailf.c index 6a76ef45..ec6e1c46 100644 --- a/text-utils/tailf.c +++ b/text-utils/tailf.c @@ -41,6 +41,7 @@ #include <sys/inotify.h> #endif #include "nls.h" +#include "usleep.h" #define DEFAULT_LINES 10 |