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