diff options
author | Richard Hughes <richard@hughsie.com> | 2014-11-19 16:40:35 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2014-11-19 16:40:45 +0000 |
commit | 020b194de9e661b78a8368b7fcd9e9f0bc67a67c (patch) | |
tree | 6521bfae5c3858968d9216516f7a4ff982f282b4 | |
parent | 340509668d690de868836255b2aa9a0a3e928418 (diff) | |
download | colord-020b194de9e661b78a8368b7fcd9e9f0bc67a67c.tar.gz |
trivial: Fix compile with --disable-gudev --enable-gusb
-rw-r--r-- | src/cd-sensor.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cd-sensor.c b/src/cd-sensor.c index 243a6e2..48c23e5 100644 --- a/src/cd-sensor.c +++ b/src/cd-sensor.c @@ -1106,6 +1106,7 @@ cd_sensor_open_usb_device (CdSensor *sensor, gint interface, GError **error) { +#ifdef HAVE_UDEV CdSensorPrivate *priv = sensor->priv; guint8 busnum; guint8 devnum; @@ -1130,6 +1131,10 @@ cd_sensor_open_usb_device (CdSensor *sensor, return NULL; } return g_object_ref (device); +#else + g_set_error_literal (error, 1, 0, "failed: no gudev support"); + return NULL; +#endif } #endif |