summaryrefslogtreecommitdiff
path: root/lib/nanosleep.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-02-10 09:38:43 +0000
committerJim Meyering <jim@meyering.net>2000-02-10 09:38:43 +0000
commitafc29608510565857f51e56545385b2b4a5b55e7 (patch)
tree8cb8432c41e00ee07f2a6e1208742a795886a0a8 /lib/nanosleep.c
parentd9aece69b3f006073bd4cf83df4cd730bef8cd3a (diff)
downloadcoreutils-afc29608510565857f51e56545385b2b4a5b55e7.tar.xz
#undef nanosleep.
(rpl_nanosleep): Rename from nanosleep.
Diffstat (limited to 'lib/nanosleep.c')
-rw-r--r--lib/nanosleep.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/nanosleep.c b/lib/nanosleep.c
index 0adad8800..26562662b 100644
--- a/lib/nanosleep.c
+++ b/lib/nanosleep.c
@@ -18,6 +18,11 @@
/* written by Jim Meyering */
#include <config.h>
+
+/* Undefine nanosleep here so any prototype is not redefined to be a
+ prototype for rpl_nanosleep. (they'd conflict e.g., on alpha-dec-osf3.2) */
+#undef nanosleep
+
#include <stdio.h>
#include <sys/types.h>
#include <signal.h>
@@ -58,7 +63,7 @@ my_usleep (const struct timespec *ts_delay)
/* FIXME: comment */
int
-nanosleep (const struct timespec *requested_delay,
+rpl_nanosleep (const struct timespec *requested_delay,
struct timespec *remaining_delay)
{
#ifdef SA_NOCLDSTOP