summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/krb5/ccache/stdio/scc_maybe.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/lib/krb5/ccache/stdio/scc_maybe.c b/src/lib/krb5/ccache/stdio/scc_maybe.c
index 8b6b3088c..5347cf94b 100644
--- a/src/lib/krb5/ccache/stdio/scc_maybe.c
+++ b/src/lib/krb5/ccache/stdio/scc_maybe.c
@@ -17,7 +17,14 @@ static char rcsid_scc_maybe_c[] =
#endif /* !lint & !SABER */
#include "scc.h"
-#include <netinet/in.h> /* XXX ip only? */
+#include <krb5/osconf.h>
+
+#ifdef KRB5_USE_INET
+#include <netinet/in.h>
+#else
+ #error find some way to use net-byte-order file version numbers.
+#endif
+
#include <krb5/libos.h>
#include <krb5/los-proto.h>
@@ -30,9 +37,8 @@ krb5_scc_close_file (id)
krb5_error_code retval;
data = (krb5_scc_data *) id->data;
- if (data->file == (FILE *) NULL) {
- abort ();
- }
+ if (data->file == (FILE *) NULL)
+ return KRB5_FCC_INTERNAL;
#ifdef ultrix
errno = 0;
#endif