diff options
Diffstat (limited to 'sysdeps/generic/sysd-stdio.c')
-rw-r--r-- | sysdeps/generic/sysd-stdio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/generic/sysd-stdio.c b/sysdeps/generic/sysd-stdio.c index 9818f84c5c..da8ed20bed 100644 --- a/sysdeps/generic/sysd-stdio.c +++ b/sysdeps/generic/sysd-stdio.c @@ -28,10 +28,10 @@ /* Read N bytes into BUF from COOKIE. */ int -__stdio_read (void *cookie, char *buf, size_t n;) +__stdio_read (void *cookie, char *buf, size_t n) { const int fd = (int) cookie; -#if defined (EINTR) && defined (EINTR_REPEAT) +#if defined EINTR && defined EINTR_REPEAT int save = errno; int nread; @@ -70,7 +70,7 @@ __stdio_write (void *cookie, const char *buf, size_t n) n -= count; } else if (count < 0 -#if defined (EINTR) && defined (EINTR_REPEAT) +#if defined EINTR && defined EINTR_REPEAT && errno != EINTR #endif ) |