diff --git a/lib/libzpool/include/sys/zfs_context.h b/lib/libzpool/include/sys/zfs_context.h index 0b32ee7ce0..1f50db6940 100644 --- a/lib/libzpool/include/sys/zfs_context.h +++ b/lib/libzpool/include/sys/zfs_context.h @@ -58,7 +58,6 @@ extern "C" { #include #include #include -#include #include #include #include @@ -72,8 +71,11 @@ extern "C" { #include #include #include +#ifdef HAVE_SYSEVENT +#include #include #include +#endif /* HAVE_SYSEVENT */ /* * Stack