select on FD > 1024 get this patch to ldns ppl

This commit is contained in:
Jeff Lenk committed 2011-03-25 11:31:12 -05:00
1 parent 579927b53a
commit 710fc7a775
3 files changed
+67 -75

No files matched your search

+10
View File
@@ -148,6 +148,16 @@ extern ldns_lookup_table ldns_opcodes[];
/** EDNS flags */
extern ldns_lookup_table ldns_edns_flags[];
#ifdef USE_WINSOCK
#define SOCK_INVALID INVALID_SOCKET
#define close_socket(_s) if (_s > SOCK_INVALID) {closesocket(_s); _s = SOCK_INVALID;}
#else
#define SOCK_INVALID -1
#define close_socket(_s) if (_s > SOCK_INVALID) {close(_s); _s = SOCK_INVALID;}
#endif
#ifdef __cplusplus
}
#endif