Mercurial > hg > octave-nkf > gnulib-hg
changeset 2057:50da17269b1b
*** empty log message ***
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Sun, 26 Dec 1999 10:19:40 +0000 |
parents | cf3d523888c5 |
children | 640074e7d6cd |
files | lib/nanosleep.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/nanosleep.c +++ b/lib/nanosleep.c @@ -22,6 +22,11 @@ #include <sys/types.h> #include <signal.h> +#include <errno.h> +#ifndef errno +extern int errno; +#endif + #if HAVE_UNISTD_H # include <unistd.h> #endif @@ -98,5 +103,7 @@ /* FIXME: Restore sig handler? */ + errno = EINTR; + return suspended; }