Mercurial > hg > octave-kai > gnulib-hg
changeset 2270:cf5eb0c29b04
#undef nanosleep.
(rpl_nanosleep): Rename from nanosleep.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Thu, 10 Feb 2000 09:38:43 +0000 |
parents | 6262af5018c4 |
children | 78563cb66dc8 |
files | lib/nanosleep.c |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ /* FIXME: comment */ int -nanosleep (const struct timespec *requested_delay, +rpl_nanosleep (const struct timespec *requested_delay, struct timespec *remaining_delay) { #ifdef SA_NOCLDSTOP