summaryrefslogtreecommitdiffstats
path: root/src/lib/krb5/ccache/ccdefops.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/krb5/ccache/ccdefops.c')
-rw-r--r--src/lib/krb5/ccache/ccdefops.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/lib/krb5/ccache/ccdefops.c b/src/lib/krb5/ccache/ccdefops.c
index 296d92ad6..df7497f80 100644
--- a/src/lib/krb5/ccache/ccdefops.c
+++ b/src/lib/krb5/ccache/ccdefops.c
@@ -25,7 +25,19 @@
* so that the user can more easily override it.
*/
-#include "file/fcc.h"
-#include "stdio/scc.h"
+#include "k5-int.h"
+#ifdef HAVE_SYS_TYPES_H
+/* Systems that have <sys/types.h> probably have Unix-like files (off_t,
+ for example, which is needed by fcc.h). */
+
+#include "fcc.h" /* From file subdir */
krb5_cc_ops *krb5_cc_dfl_ops = &krb5_cc_file_ops;
+
+#else
+/* Systems that don't have <sys/types.h> probably have stdio anyway. */
+
+#include "scc.h" /* From stdio subdir */
+krb5_cc_ops *krb5_cc_dfl_ops = &krb5_scc_ops;
+
+#endif