Fix tcpip.c compilation failure on VC9 YAZ-835
[yaz-moved-to-github.git] / src / tcpip.c
index b4fbd91..4f4fd48 100644 (file)
@@ -1228,10 +1228,10 @@ int tcpip_get(COMSTACK h, char **buf, int *bufsize)
                     h->cerrno = CSYSERR;
                     return -1;
                 }
+#endif
             }
             else if (!res)
                 return hasread;
-#endif
         }
         hasread += res;
         if (hasread > h->max_recv_bytes)