summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-01-05 12:03:53 +0000
committerJim Meyering <jim@meyering.net>2000-01-05 12:03:53 +0000
commitec266f43d535ab3a8313f85f278907ba8c5c400c (patch)
tree14c4d7d392712acb3fb82bf083e030944d7d584f /lib
parent1885aeaaa41210070c20148ad6ceb725018c470d (diff)
downloadcoreutils-ec266f43d535ab3a8313f85f278907ba8c5c400c.tar.xz
Include nanosleep.h.
Don't include time.h or sys/time.h here.
Diffstat (limited to 'lib')
-rw-r--r--lib/nanosleep.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/nanosleep.c b/lib/nanosleep.c
index 42f179c55..1f17c09cf 100644
--- a/lib/nanosleep.c
+++ b/lib/nanosleep.c
@@ -1,5 +1,5 @@
/* Provide a replacement for the POSIX nanosleep function.
- Copyright (C) 1999 Free Software Foundation, Inc.
+ Copyright (C) 1999, 2000 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -31,9 +31,7 @@ extern int errno;
# include <unistd.h>
#endif
-#include <time.h>
-/* FIXME: is including both like this kosher? */
-#include <sys/time.h>
+#include "nanosleep.h"
static int suspended;
int first_call = 1;