From 2893ae4d0368078758ffa4afe29224e109959b16 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Tue, 31 Mar 2015 16:38:34 +0200 Subject: [PATCH] linux/errqueue.h may require linux/types.h --- CHANGES | 3 +++ configure.in | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 8a5af63..1f48e39 100644 --- a/CHANGES +++ b/CHANGES @@ -168,6 +168,9 @@ porting: The check for fips.h required stddef.h Thanks to Matt Hilt for reporting this issue and sending a patch + Check for linux/errqueue.h failed on some systems due to lack of + linux/types.h inclusion. Thanks to Michael Vastola for sending a patch. + libwrap always logs to syslog added actual text version of GPLv2 diff --git a/configure.in b/configure.in index 4032bf1..b26c23c 100644 --- a/configure.in +++ b/configure.in @@ -79,7 +79,8 @@ AC_HEADER_RESOLV() AC_CHECK_HEADERS(termios.h linux/if_tun.h) AC_CHECK_HEADERS(net/if_dl.h) -AC_CHECK_HEADERS(linux/types.h linux/errqueue.h) +AC_CHECK_HEADERS(linux/types.h) +AC_CHECK_HEADER(linux/errqueue.h, AC_DEFINE(HAVE_LINUX_ERRQUEUE_H), [], [#include ]) AC_CHECK_HEADERS(sys/utsname.h sys/select.h sys/file.h) AC_CHECK_HEADERS(util.h bsd/libutil.h libutil.h sys/stropts.h regex.h) AC_CHECK_HEADERS(linux/fs.h linux/ext2_fs.h)