From 2b1eabd058a19d15f61a0207c2eef430e17ebce1 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Fri, 16 Nov 2012 22:21:33 +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 13c1d3b..b7c2daf 100644 --- a/CHANGES +++ b/CHANGES @@ -86,6 +86,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 + docu mentions option so-bindtodev but correct name is so-bindtodevice. Thanks to Jim Zimmerman for reporting. diff --git a/configure.in b/configure.in index ded7833..9f3faa4 100644 --- a/configure.in +++ b/configure.in @@ -64,7 +64,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