aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libzfs/libzfs_fru.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libzfs/libzfs_fru.c')
-rw-r--r--lib/libzfs/libzfs_fru.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libzfs/libzfs_fru.c b/lib/libzfs/libzfs_fru.c
index 788fa2cfb..78f2f9c37 100644
--- a/lib/libzfs/libzfs_fru.c
+++ b/lib/libzfs/libzfs_fru.c
@@ -34,6 +34,8 @@
#include <libzfs.h>
+#if defined(HAVE_LIBTOPO)
+
#include <fm/libtopo.h>
#include <sys/fm/protocol.h>
#include <sys/systeminfo.h>
@@ -450,3 +452,18 @@ libzfs_fru_clear(libzfs_handle_t *hdl, boolean_t final)
ZFS_FRU_HASH_SIZE * sizeof (void *));
}
}
+
+#else /* HAVE_LIBTOPO */
+
+/*
+ * Clear memory associated with the FRU hash.
+ */
+void
+libzfs_fru_clear(libzfs_handle_t *hdl, boolean_t final)
+{
+ return;
+}
+
+#endif /* HAVE_LIBTOPO */
+
+