corrected check for net/if.h

This commit is contained in:
Gerhard Rieger 2011-11-27 11:03:56 +01:00
parent 1c302dc23c
commit eccce7542e
2 changed files with 4 additions and 1 deletions

View file

@ -59,6 +59,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
porting: porting:
Cedril Priscal ported socat to Android (using Googles cross compiler). Cedril Priscal ported socat to Android (using Googles cross compiler).
The port includes the socat_buildscript_for_android.sh script The port includes the socat_buildscript_for_android.sh script

View file

@ -65,7 +65,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