]> granicus.if.org Git - php/commitdiff
Changed the #ifdefs around "errno = ETIMEDOUT;" to include the rest
authorAndrew Skalski <askalski@php.net>
Tue, 23 May 2000 13:56:04 +0000 (13:56 +0000)
committerAndrew Skalski <askalski@php.net>
Tue, 23 May 2000 13:56:04 +0000 (13:56 +0000)
of the statement ["if (n == 0)"]

ext/ftp/ftp.c

index 5cafaea2a32ea992774574c2ad381dccfdc02697..0fd428a804989465f3165053ed66133a9ff25af2 100644 (file)
@@ -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;