From 65e8f97d5637a774758ba183324d360c7adeda23 Mon Sep 17 00:00:00 2001 From: baalberith Date: Tue, 14 Oct 2008 10:59:19 +0000 Subject: [PATCH] accepted ticket [1859455]: should be included explicitly --- config.h.in | 5 +++++ spnegokrb5/spnegokrb5_locl.h | 4 ++++ src/mod_auth_kerb.c | 3 +-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/config.h.in b/config.h.in index 8f09067..ca90d99 100644 --- a/config.h.in +++ b/config.h.in @@ -21,3 +21,8 @@ /* Define if your krb supports krb5_cc_new_unique function to deal with threading issues */ #undef HAVE_KRB5_CC_NEW_UNIQUE +/* Define to 1 if you have the header file. */ +#undef HAVE_UNISTD_H + +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TYPES_H diff --git a/spnegokrb5/spnegokrb5_locl.h b/spnegokrb5/spnegokrb5_locl.h index a4d1d44..5b20bc7 100644 --- a/spnegokrb5/spnegokrb5_locl.h +++ b/spnegokrb5/spnegokrb5_locl.h @@ -4,6 +4,10 @@ #include "config.h" +#if HAVE_SYS_TYPES_H +#include +#endif + #ifdef HEIMDAL # include #else diff --git a/src/mod_auth_kerb.c b/src/mod_auth_kerb.c index 8801f8d..237a371 100644 --- a/src/mod_auth_kerb.c +++ b/src/mod_auth_kerb.c @@ -113,8 +113,7 @@ #include /* gethostbyname() */ #endif /* KRB4 */ -#ifndef _WIN32 -/* should be HAVE_UNISTD_H instead */ +#if HAVE_UNISTD_H #include #endif -- 2.1.4