* network.c: Conditionally include sys/sockio.h for SIOC* if
necessary.
(process_packet): Bracket AF_INET6 branch of a switch statement
with an ifdef.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12074
dc483132-0cff-0310-8789-
dd5450dbe970
+2000-02-25 Tom Yu <tlyu@mit.edu>
+
+ * configure.in: Check for sys/sockio.h
+
+ * network.c: Conditionally include sys/sockio.h for SIOC* if
+ necessary.
+ (process_packet): Bracket AF_INET6 branch of a switch statement
+ with an ifdef.
+
2000-02-25 Ken Raeburn <raeburn@mit.edu>
Alec H. Peterson <ahp@hilander.com>
CONFIG_RULES
AC_PROG_INSTALL
AC_HEADER_CHECK(termios.h,AC_FUNC_CHECK([tcsetattr],AC_DEFINE(POSIX_TERMIOS)))
-AC_CHECK_HEADERS(syslog.h stdarg.h sys/select.h)
+AC_CHECK_HEADERS(syslog.h stdarg.h sys/select.h sys/sockio.h)
AC_CHECK_FUNCS(openlog syslog closelog strftime vsprintf)
AC_PROG_AWK
KRB5_AC_INET6
#include <sys/types.h>
#include <netinet/in.h>
#include <sys/socket.h>
+#ifdef HAVE_SYS_SOCKIO_H
+/* for SIOCGIFCONF, etc. */
+#include <sys/sockio.h>
+#endif
#include <sys/time.h>
#if HAVE_SYS_SELECT_H
#include <sys/select.h>
addr.length = 4;
addr.contents = (krb5_octet *) &((struct sockaddr_in *)&saddr)->sin_addr;
break;
+#ifdef KRB5_USE_INET6
case AF_INET6:
addr.addrtype = ADDRTYPE_INET6;
addr.length = 16;
addr.contents = (krb5_octet *) &((struct sockaddr_in6 *)&saddr)->sin6_addr;
break;
+#endif
default:
addr.addrtype = -1;
addr.length = 0;