diff --git a/module/zfs/include/sys/zfs_context.h b/module/zfs/include/sys/zfs_context.h index 2ce5c9da4d..29b88a37fa 100644 --- a/module/zfs/include/sys/zfs_context.h +++ b/module/zfs/include/sys/zfs_context.h @@ -58,9 +58,11 @@ extern "C" { #include #include #include +#ifdef HAVE_SYSEVENT #include #include #include +#endif /* HAVE_SYSEVENT */ #include #ifdef __cplusplus