From 3cefec37a5dc44deadf12dfba81df432a4d855a5 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 11 Jun 2002 19:13:36 +0000 Subject: [PATCH] * sendto_kdc.c: Include sys/ioctl.h and sys/filio.h only if ENABLE_TCP is set and _WIN32 is not defined. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14494 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/ChangeLog | 5 +++++ src/lib/krb5/os/sendto_kdc.c | 12 +++++++----- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/lib/krb5/os/ChangeLog b/src/lib/krb5/os/ChangeLog index 60633a972..e075175e1 100644 --- a/src/lib/krb5/os/ChangeLog +++ b/src/lib/krb5/os/ChangeLog @@ -1,3 +1,8 @@ +2002-06-11 Ken Raeburn + + * sendto_kdc.c: Include sys/ioctl.h and sys/filio.h only if + ENABLE_TCP is set and _WIN32 is not defined. + 2002-06-10 Ken Raeburn * sendto_kdc.c: Include sys/ioctl.h and sys/filio.h if diff --git a/src/lib/krb5/os/sendto_kdc.c b/src/lib/krb5/os/sendto_kdc.c index a5ff0abc7..10fe435ca 100644 --- a/src/lib/krb5/os/sendto_kdc.c +++ b/src/lib/krb5/os/sendto_kdc.c @@ -44,16 +44,18 @@ #include #endif +#ifdef _WIN32 +#define ENABLE_TCP 0 /* for now */ +#else +#define ENABLE_TCP 1 +#endif + +#if defined(ENABLE_TCP) && !defined(_WIN32) /* For FIONBIO. */ #include #ifdef HAVE_SYS_FILIO_H #include #endif - -#ifdef _WIN32 -#define ENABLE_TCP 0 /* for now */ -#else -#define ENABLE_TCP 1 #endif /* -- 2.26.2