mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-11-04 12:14:19 +01:00
Zpool: allows disabling module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user