Zpool: allows disabling module

This commit is contained in:
李通洲
2025-12-01 17:17:46 +08:00
parent 5e27ee0f57
commit ce7455d8f0
2 changed files with 21 additions and 1 deletions
+11
View File
@@ -1,5 +1,7 @@
#include "zpool.h"
#if FF_HAVE_LIBZFS
#include "util/kmod.h"
#ifdef __sun
@@ -113,3 +115,12 @@ const char* ffDetectZpool(FFlist* result /* list of FFZpoolResult */)
return NULL;
}
#else
const char* ffDetectZpool(FF_MAYBE_UNUSED FFlist* result)
{
return "fastfetch was compiled without libzfs support";
}
#endif