use osconf.h to determine if we have in.h
authorJohn Kohl <jtkohl@mit.edu>
Fri, 19 Apr 1991 14:58:12 +0000 (14:58 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Fri, 19 Apr 1991 14:58:12 +0000 (14:58 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2014 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/rcache/rc_io.c

index 82366209a2a32b153a6e3e6df3b27a877620994f..bc8d59cd0543fd36f1dd5e001fc5ead0dbaf52b5 100644 (file)
@@ -28,7 +28,13 @@ static char rcsid_rc_io_c[] =
 #include "rc_dfl.h"
 #include "rc_io.h"
 #include <krb5/sysincl.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
 
 extern int errno; /* this should be in errno.h, but isn't on some systems */