From dce440602dc4b6bc5fe890d1736bd2d354cb052b Mon Sep 17 00:00:00 2001 From: Glenn Strauss Date: Thu, 5 Nov 2020 01:08:11 -0500 Subject: [PATCH] [core] stat_cache preprocessor paranoia --- src/stat_cache.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stat_cache.c b/src/stat_cache.c index f87fc984..b1636e37 100644 --- a/src/stat_cache.c +++ b/src/stat_cache.c @@ -132,7 +132,8 @@ static void * stat_cache_sptree_find(splay_tree ** const sptree, * different files recently accessed and part of the stat_cache. */ -#ifdef HAVE_SYS_INOTIFY_H +#if defined(HAVE_SYS_INOTIFY_H) \ + && !(defined(HAVE_SYS_EVENT_H) && defined(HAVE_KQUEUE)) #include @@ -157,6 +158,7 @@ typedef enum FAMCodes { /*(copied from fam.h to define arbitrary enum values)*/ } FAMCodes; #elif defined HAVE_SYS_EVENT_H && defined HAVE_KQUEUE +#undef HAVE_SYS_INOTIFY_H #include #include