Fix tcpip.c compilation failure on VC9 YAZ-835
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 31 Mar 2015 09:55:00 +0000 (11:55 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 31 Mar 2015 09:55:00 +0000 (11:55 +0200)
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;
                 }
                     h->cerrno = CSYSERR;
                     return -1;
                 }
+#endif
             }
             else if (!res)
                 return hasread;
             }
             else if (!res)
                 return hasread;
-#endif
         }
         hasread += res;
         if (hasread > h->max_recv_bytes)
         }
         hasread += res;
         if (hasread > h->max_recv_bytes)