mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-08 21:23:19 +00:00
trivial: fix compile failure without gudev
This commit is contained in:
parent
cb59a44f28
commit
0bf1c330aa
@ -118,6 +118,7 @@ fu_udev_device_get_sysfs_attr_as_uint8 (GUdevDevice *udev_device, const gchar *n
|
|||||||
static void
|
static void
|
||||||
fu_udev_device_to_string (FuDevice *device, guint idt, GString *str)
|
fu_udev_device_to_string (FuDevice *device, guint idt, GString *str)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_GUDEV
|
||||||
FuUdevDevice *self = FU_UDEV_DEVICE (device);
|
FuUdevDevice *self = FU_UDEV_DEVICE (device);
|
||||||
FuUdevDevicePrivate *priv = GET_PRIVATE (self);
|
FuUdevDevicePrivate *priv = GET_PRIVATE (self);
|
||||||
const gchar * const *keys;
|
const gchar * const *keys;
|
||||||
@ -140,6 +141,7 @@ fu_udev_device_to_string (FuDevice *device, guint idt, GString *str)
|
|||||||
g_udev_device_get_sysfs_attr (priv->udev_device,
|
g_udev_device_get_sysfs_attr (priv->udev_device,
|
||||||
keys[i]));
|
keys[i]));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
Reference in New Issue
Block a user