Windows doesn't support poll(2) or fcntl(2) so #ifdef it out in send_to_kdc.c.

This commit is contained in:
Roland C. Dowdeswell
2012-08-14 22:50:33 +01:00
parent 571e7daab3
commit 3a30f3b0d1
2 changed files with 6 additions and 0 deletions

View File

@@ -47,7 +47,9 @@
#include <stdlib.h> #include <stdlib.h>
#include <limits.h> #include <limits.h>
#ifdef HAVE_POLL_H
#include <sys/poll.h> #include <sys/poll.h>
#endif
#include <krb5-types.h> #include <krb5-types.h>

View File

@@ -47,6 +47,7 @@ struct send_to_kdc {
static int static int
timed_connect(int s, struct addrinfo *addr, time_t tmout) timed_connect(int s, struct addrinfo *addr, time_t tmout)
{ {
#ifdef HAVE_POLL
socklen_t sl; socklen_t sl;
int so_err; int so_err;
int flags; int flags;
@@ -88,6 +89,9 @@ timed_connect(int s, struct addrinfo *addr, time_t tmout)
return -1; return -1;
return 0; return 0;
#else
return connect(s, addr->ai_addr, addr->ai_addrlen);
#endif
} }
/* /*