fixed compile on win32

This commit is contained in:
Johan Althoff 2008-02-10 19:03:10 +00:00
parent fb336cddbb
commit 2f969d9d6f

View file

@ -735,9 +735,10 @@ void swap_endian(void *data, unsigned elem_size, unsigned num)
int net_socket_read_wait(NETSOCKET sock, int time)
{
/*
#if defined(CONF_FAMILY_WINDOWS)
#error Not implemented
#else
#else*/
struct timeval tv;
fd_set readfds;
@ -752,7 +753,8 @@ int net_socket_read_wait(NETSOCKET sock, int time)
if(FD_ISSET(sock, &readfds))
return 1;
return 0;
#endif
/*
#endif*/
}
#if defined(__cplusplus)