corrected check for net/if.h

This commit is contained in:
Gerhard Rieger 2012-11-16 22:21:33 +01:00
parent 800fd903b1
commit 2b1eabd058
2 changed files with 4 additions and 1 deletions

View file

@ -86,6 +86,9 @@ corrections:
fixed a bug that could lead to error or socat crash after a client fixed a bug that could lead to error or socat crash after a client
connection with option retry had been established connection with option retry had been established
fixed configure.in bug on net/if.h check that caused IF_NAMESIZE to be
undefined
docu mentions option so-bindtodev but correct name is so-bindtodevice. docu mentions option so-bindtodev but correct name is so-bindtodevice.
Thanks to Jim Zimmerman for reporting. Thanks to Jim Zimmerman for reporting.

View file

@ -64,7 +64,7 @@ AC_CHECK_HEADERS(netinet/ip.h, [], [], [AC_INCLUDES_DEFAULT
#include <netinet/in_systm.h> #include <netinet/in_systm.h>
#endif]) # Solaris prerequisites for netinet/ip.h #endif]) # Solaris prerequisites for netinet/ip.h
AC_CHECK_HEADERS(netinet/tcp.h) AC_CHECK_HEADERS(netinet/tcp.h)
AC_CHECK_HEADER(net/if.h, [], [], [AC_INCLUDES_DEFAULT AC_CHECK_HEADER(net/if.h, AC_DEFINE(HAVE_NET_IF_H), [], [AC_INCLUDES_DEFAULT
#if HAVE_SYS_SOCKET_H #if HAVE_SYS_SOCKET_H
#include <sys/socket.h> #include <sys/socket.h>
#endif]) # Mac OS X requires including sys/socket.h #endif]) # Mac OS X requires including sys/socket.h