From 086d185872da5f19447cf5ec7846e7ce5104563f Mon Sep 17 00:00:00 2001 From: Cheyenne Wills Date: Wed, 20 Nov 2019 12:43:03 -0700 Subject: [PATCH] LINUX: Include linux/time.h for linux/errqueue.h The configuration test for errqueue.h fails with an undefined structure error on a Linux 3.17 (or higher) system. This prevents setting HAVE_LINUX_ERRQUEUE_H, which is used to define AFS_RXERRQ_ENV. Linux commit f24b9be5957b38bb420b838115040dc2031b7d0c (net-timestamp: extend SCM_TIMESTAMPING ancillary data struct) - which was picked up in linux 3.17 added a structure that uses the timespec structure. After this commit, we need to include linux/time.h to pull in the definition of the timespec struct. Change-Id: Ifab79f8454c771276d5fdf443c4d68400b70134a Reviewed-on: https://gerrit.openafs.org/13950 Reviewed-by: Andrew Deason Tested-by: Andrew Deason Reviewed-by: Benjamin Kaduk --- src/cf/headers.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cf/headers.m4 b/src/cf/headers.m4 index 913af44..af4a4dd 100644 --- a/src/cf/headers.m4 +++ b/src/cf/headers.m4 @@ -88,7 +88,8 @@ AC_CHECK_HEADERS([security/pam_modules.h],[],[],[AC_INCLUDES_DEFAULT # include #endif]) -AC_CHECK_HEADERS(linux/errqueue.h,,,[#include ]) +AC_CHECK_HEADERS(linux/errqueue.h,,,[#include +#include ]) AC_CHECK_TYPES([fsblkcnt_t],,,[ #include -- 1.9.4