ldns initial round for windows compatibility

This commit is contained in:
Jeff Lenk committed 2011-03-25 11:46:58 -05:00
1 parent 710fc7a775
commit e0eb284ef4
31 files changed
+161 -1

No files matched your search

+6 -1
View File
@@ -27,7 +27,12 @@
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
#ifdef _MSC_VER
#include <compat/gettimeofday.h>
#include <time.h>
#else
#include <sys/time.h>
#endif
#include <errno.h>
#include <fcntl.h>
@@ -275,7 +280,7 @@ ldns_sock_wait(int sockfd, struct timeval timeout, int write)
fd_set fds;
#ifndef S_SPLINT_S
FD_ZERO(&fds);
FD_SET(FD_SET_T sockfd, &fds);
FD_SET(sockfd, &fds);
#endif
if(write)
ret = select(sockfd+1, NULL, &fds, NULL, &timeout);