summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/ftp/ftp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/ftp/ftp.c b/ext/ftp/ftp.c
index 5cafaea2a3..0fd428a804 100644
--- a/ext/ftp/ftp.c
+++ b/ext/ftp/ftp.c
@@ -842,8 +842,8 @@ my_send(int s, void *buf, size_t len)
FD_SET(s, &write_set);
n = select(s + 1, NULL, &write_set, NULL, &tv);
if (n < 1) {
- if (n == 0)
#ifndef PHP_WIN32
+ if (n == 0)
errno = ETIMEDOUT;
#endif
return -1;
@@ -875,8 +875,8 @@ my_recv(int s, void *buf, size_t len)
FD_SET(s, &read_set);
n = select(s + 1, &read_set, NULL, NULL, &tv);
if (n < 1) {
- if (n == 0)
#ifndef PHP_WIN32
+ if (n == 0)
errno = ETIMEDOUT;
#endif
return -1;
@@ -952,8 +952,8 @@ my_accept(int s, struct sockaddr *addr, int *addrlen)
n = select(s + 1, &accept_set, NULL, NULL, &tv);
if (n < 1) {
- if (n == 0)
#ifndef PHP_WIN32
+ if (n == 0)
errno = ETIMEDOUT;
#endif
return -1;