accepted ticket [1859455]: <sys/types.h> should be included explicitly
authorbaalberith <baalberith>
Tue, 14 Oct 2008 10:59:19 +0000 (10:59 +0000)
committerbaalberith <baalberith>
Tue, 14 Oct 2008 10:59:19 +0000 (10:59 +0000)
config.h.in
spnegokrb5/spnegokrb5_locl.h
src/mod_auth_kerb.c

index 8f09067..ca90d99 100644 (file)
@@ -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 <unistd.h> header file. */
+#undef HAVE_UNISTD_H
+
+/* Define to 1 if you have the <sys/types.h> header file. */
+#undef HAVE_SYS_TYPES_H
index a4d1d44..5b20bc7 100644 (file)
@@ -4,6 +4,10 @@
 
 #include "config.h"
 
+#if HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
 #ifdef HEIMDAL
 #  include <gssapi.h>
 #else
index 8801f8d..237a371 100644 (file)
 #include <netdb.h> /* gethostbyname() */
 #endif /* KRB4 */
 
-#ifndef _WIN32
-/* should be HAVE_UNISTD_H instead */
+#if HAVE_UNISTD_H
 #include <unistd.h>
 #endif