]> andersk Git - openssh.git/blobdiff - atomicio.c
- (djm) [atomicio.c channels.c clientloop.c defines.h includes.h]
[openssh.git] / atomicio.c
index 575bf8900ee39e9e3cb89061934b659bd87b52d6..bb44c32300d368b77f84b9d22adb1c229e34b88b 100644 (file)
@@ -63,11 +63,7 @@ atomicio(ssize_t (*f) (int, void *, size_t), int fd, void *_s, size_t n)
                case -1:
                        if (errno == EINTR)
                                continue;
-#ifdef EWOULDBLOCK
                        if (errno == EAGAIN || errno == EWOULDBLOCK) {
-#else
-                       if (errno == EAGAIN) {
-#endif
                                (void)poll(&pfd, 1, -1);
                                continue;
                        }
@@ -109,11 +105,7 @@ atomiciov(ssize_t (*f) (int, const struct iovec *, int), int fd,
                case -1:
                        if (errno == EINTR)
                                continue;
-#ifdef EWOULDBLOCK
                        if (errno == EAGAIN || errno == EWOULDBLOCK) {
-#else
-                       if (errno == EAGAIN) {
-#endif
                                (void)poll(&pfd, 1, -1);
                                continue;
                        }
This page took 0.035844 seconds and 4 git commands to generate.