From 95692927f28479c2d3cf0c1e60ad278c8748377c Mon Sep 17 00:00:00 2001 From: Don Brady Date: Tue, 6 Nov 2018 18:47:52 -0700 Subject: Fix libudev dependency in libzutil ZFS should be able to build without libudev installed. The recent change for libzutil inadvertently broke that. Make the libudev code conditional in zutil_import.c to resolve the build failure. Reviewed-by: Brian Behlendorf Reviewed-by: Tony Hutter Signed-off-by: Don Brady Closes #8097 --- lib/libzutil/zutil_import.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/libzutil') diff --git a/lib/libzutil/zutil_import.c b/lib/libzutil/zutil_import.c index f6e56fabf..4284efa75 100644 --- a/lib/libzutil/zutil_import.c +++ b/lib/libzutil/zutil_import.c @@ -224,6 +224,7 @@ typedef struct vdev_dev_strs { char vds_devphys[128]; } vdev_dev_strs_t; +#ifdef HAVE_LIBUDEV /* * Obtain the persistent device id string (describes what) * @@ -398,6 +399,7 @@ udev_device_is_ready(struct udev_device *dev) return (udev_device_get_property_value(dev, "DEVLINKS") != NULL); #endif } +#endif /* HAVE_LIBUDEV */ /* * Wait up to timeout_ms for udev to set up the device node. The device is -- cgit v1.2.3