# HG changeset patch # User Matt Johnston # Date 1130744997 0 # Node ID 8b62b0ea8f3bb08b79b1246d0faa998cff22c809 # Parent 84925eceeb130ee7f766e2c85134ace5333d5cef * include netinet/in_systm.h if available before netinet/ip.h, since netbsd seems to require it for some reason. hooray for many unices. diff -r 84925eceeb13 -r 8b62b0ea8f3b configure.in --- a/configure.in Thu Oct 20 16:53:12 2005 +0000 +++ b/configure.in Mon Oct 31 07:49:57 2005 +0000 @@ -206,7 +206,7 @@ # Checks for header files. AC_HEADER_STDC AC_HEADER_SYS_WAIT -AC_CHECK_HEADERS([fcntl.h limits.h netinet/in.h netinet/tcp.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h crypt.h pty.h ioctl.h libutil.h libgen.h inttypes.h stropts.h utmp.h utmpx.h lastlog.h paths.h util.h netdb.h security/pam_appl.h pam/pam_appl.h]) +AC_CHECK_HEADERS([fcntl.h limits.h netinet/in.h netinet/tcp.h stdlib.h string.h sys/socket.h sys/time.h termios.h unistd.h crypt.h pty.h ioctl.h libutil.h libgen.h inttypes.h stropts.h utmp.h utmpx.h lastlog.h paths.h util.h netdb.h security/pam_appl.h pam/pam_appl.h netinet/in_systm.h]) # Checks for typedefs, structures, and compiler characteristics. AC_C_CONST diff -r 84925eceeb13 -r 8b62b0ea8f3b includes.h --- a/includes.h Thu Oct 20 16:53:12 2005 +0000 +++ b/includes.h Mon Oct 31 07:49:57 2005 +0000 @@ -44,8 +44,6 @@ #include #include #include -#include -#include #include #include #include @@ -58,8 +56,6 @@ #include #include -#include - #ifdef HAVE_UTMP_H #include #endif @@ -76,10 +72,20 @@ #include #endif +#include + #ifdef HAVE_NETINET_IN_H #include #endif +/* netbsd 1.6 needs this to be included before netinet/ip.h for some + * undocumented reason */ +#ifdef HAVE_NETINET_IN_SYSTM_H +#include +#endif + +#include + #ifdef HAVE_NETINET_TCP_H #include #endif