mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-11 12:07:06 +00:00
ldns initial round for windows compatibility
This commit is contained in:
1 parent
710fc7a775
commit
e0eb284ef4
31 files changed
+161
-1
No files matched your search
+6
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user