From 3a30f3b0d1e0a00e5f9372092a7a9497c2f73e98 Mon Sep 17 00:00:00 2001 From: "Roland C. Dowdeswell" Date: Tue, 14 Aug 2012 22:50:33 +0100 Subject: [PATCH] Windows doesn't support poll(2) or fcntl(2) so #ifdef it out in send_to_kdc.c. --- lib/krb5/krb5_locl.h | 2 ++ lib/krb5/send_to_kdc.c | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/lib/krb5/krb5_locl.h b/lib/krb5/krb5_locl.h index 6ce001dbd..cff53acee 100644 --- a/lib/krb5/krb5_locl.h +++ b/lib/krb5/krb5_locl.h @@ -47,7 +47,9 @@ #include #include +#ifdef HAVE_POLL_H #include +#endif #include diff --git a/lib/krb5/send_to_kdc.c b/lib/krb5/send_to_kdc.c index 25160bdf5..eb39807f1 100644 --- a/lib/krb5/send_to_kdc.c +++ b/lib/krb5/send_to_kdc.c @@ -47,6 +47,7 @@ struct send_to_kdc { static int timed_connect(int s, struct addrinfo *addr, time_t tmout) { +#ifdef HAVE_POLL socklen_t sl; int so_err; int flags; @@ -88,6 +89,9 @@ timed_connect(int s, struct addrinfo *addr, time_t tmout) return -1; return 0; +#else + return connect(s, addr->ai_addr, addr->ai_addrlen); +#endif } /*