From eccce7542ea705d546a3634f23d90bafc051473b Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sun, 27 Nov 2011 11:03:56 +0100 Subject: [PATCH] corrected check for net/if.h --- CHANGES | 3 +++ configure.in | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index e1fa7a1..c3a8dcf 100644 --- a/CHANGES +++ b/CHANGES @@ -59,6 +59,9 @@ corrections: fixed a bug that could lead to error or socat crash after a client connection with option retry had been established + fixed configure.in bug on net/if.h check that caused IF_NAMESIZE to be + undefined + porting: Cedril Priscal ported socat to Android (using Googles cross compiler). The port includes the socat_buildscript_for_android.sh script diff --git a/configure.in b/configure.in index c0bfb1f..930e406 100644 --- a/configure.in +++ b/configure.in @@ -65,7 +65,7 @@ AC_CHECK_HEADERS(netinet/ip.h, [], [], [AC_INCLUDES_DEFAULT #include #endif]) # Solaris prerequisites for netinet/ip.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 #include #endif]) # Mac OS X requires including sys/socket.h