From: Jim Meyering Date: Thu, 10 Feb 2000 09:38:43 +0000 (+0000) Subject: #undef nanosleep. X-Git-Tag: cvs-readonly~6902 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=7994372d6e3d595435a3d834eabe46a9a72ab665;p=gnulib.git #undef nanosleep. (rpl_nanosleep): Rename from nanosleep. --- 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 + +/* 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 #include #include @@ -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