From 8371aa3dc01cdb257303171b8a48cfd713e4a697 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sun, 9 Mar 2014 15:47:56 +0100 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 044a151..bb828b4 100644 --- a/CHANGES +++ b/CHANGES @@ -78,6 +78,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. + docu: libwrap always logs to syslog diff --git a/configure.in b/configure.in index 60ab62b..81e1eda 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)