From: Guus Sliepen Date: Sat, 8 Jun 2002 14:08:57 +0000 (+0000) Subject: - netinet/* include files depend on netinet/in_systm.h. X-Git-Tag: release-1.0pre8~68 X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=commitdiff_plain;h=78e88521845ae3bdd963ae5a414cb9c251963fa2 - netinet/* include files depend on netinet/in_systm.h. - Squash bashism in configure.in. --- diff --git a/configure.in b/configure.in index 37f47340..f04d0652 100644 --- a/configure.in +++ b/configure.in @@ -1,6 +1,6 @@ dnl Process this file with autoconf to produce a configure script. -dnl $Id: configure.in,v 1.13.2.46 2002/06/08 13:46:06 guus Exp $ +dnl $Id: configure.in,v 1.13.2.47 2002/06/08 14:08:56 guus Exp $ AC_INIT(src/tincd.c) AM_INIT_AUTOMAKE(tinc, 1.0-cvs) @@ -70,7 +70,7 @@ dnl Checks for libraries. dnl Checks for header files. AC_HEADER_STDC AC_CHECK_HEADERS([fcntl.h inttypes.h limits.h malloc.h stdint.h strings.h syslog.h unistd.h \ -net/ethernet.h net/if.h netinet/ip.h netinet/tcp.h \ +net/ethernet.h net/if.h netinet/in_systm.h netinet/ip.h netinet/tcp.h \ sys/file.h sys/ioctl.h sys/param.h sys/time.h]) dnl Checks for typedefs, structures, and compiler characteristics. @@ -88,7 +88,7 @@ AC_CACHE_CHECK([for socklen_t], ac_cv_type_socklen_t, ac_cv_type_socklen_t=yes, ac_cv_type_socklen_t=no) ]) -if test $ac_cv_type_socklen_t == yes; then +if test $ac_cv_type_socklen_t = yes; then AC_DEFINE(HAVE_SOCKLEN_T) fi diff --git a/src/net.c b/src/net.c index 7ebbbd0f..9ec15fe1 100644 --- a/src/net.c +++ b/src/net.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net.c,v 1.35.4.172 2002/06/08 12:57:09 guus Exp $ + $Id: net.c,v 1.35.4.173 2002/06/08 14:08:57 guus Exp $ */ #include "config.h" @@ -26,6 +26,9 @@ #include #include #include +#ifdef HAVE_NETINET_IN_SYSTM_H + #include +#endif #ifdef HAVE_NETINET_IP_H #include #endif diff --git a/src/net_packet.c b/src/net_packet.c index 8dac0d9c..691260ed 100644 --- a/src/net_packet.c +++ b/src/net_packet.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net_packet.c,v 1.1.2.15 2002/06/08 12:57:09 guus Exp $ + $Id: net_packet.c,v 1.1.2.16 2002/06/08 14:08:57 guus Exp $ */ #include "config.h" @@ -26,6 +26,9 @@ #include #include #include +#ifdef HAVE_NETINET_IN_SYSTM_H + #include +#endif #ifdef HAVE_NETINET_IP_H #include #endif diff --git a/src/net_setup.c b/src/net_setup.c index d2a60f02..d0d57daa 100644 --- a/src/net_setup.c +++ b/src/net_setup.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net_setup.c,v 1.1.2.17 2002/06/08 12:57:10 guus Exp $ + $Id: net_setup.c,v 1.1.2.18 2002/06/08 14:08:57 guus Exp $ */ #include "config.h" @@ -26,6 +26,9 @@ #include #include #include +#ifdef HAVE_NETINET_IN_SYSTM_H + #include +#endif #ifdef HAVE_NETINET_IP_H #include #endif diff --git a/src/net_socket.c b/src/net_socket.c index 74841875..089f0078 100644 --- a/src/net_socket.c +++ b/src/net_socket.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: net_socket.c,v 1.1.2.13 2002/06/08 12:57:10 guus Exp $ + $Id: net_socket.c,v 1.1.2.14 2002/06/08 14:08:57 guus Exp $ */ #include "config.h" @@ -26,6 +26,9 @@ #include #include #include +#ifdef HAVE_NETINET_IN_SYSTM_H + #include +#endif #ifdef HAVE_NETINET_IP_H #include #endif diff --git a/src/route.c b/src/route.c index d2c540b6..a552eaf5 100644 --- a/src/route.c +++ b/src/route.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: route.c,v 1.1.2.41 2002/06/08 13:46:07 guus Exp $ + $Id: route.c,v 1.1.2.42 2002/06/08 14:08:57 guus Exp $ */ #include "config.h" @@ -33,6 +33,9 @@ #ifdef HAVE_NET_ETHERNET_H #include #endif +#ifdef HAVE_NETINET_IN_SYSTM_H + #include +#endif #include #include #include