From: Andrew Skalski Date: Tue, 23 May 2000 13:56:04 +0000 (+0000) Subject: Changed the #ifdefs around "errno = ETIMEDOUT;" to include the rest X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~317 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6d51f4a78879d5160999f7b7ed6094bad89acdaf;p=php Changed the #ifdefs around "errno = ETIMEDOUT;" to include the rest of the statement ["if (n == 0)"] --- 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;