summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOndrej Holy <oholy@redhat.com>2014-10-17 09:20:50 +0200
committerOndrej Holy <oholy@redhat.com>2014-10-17 13:56:40 +0200
commite3fab1313117d8fefc98976b8c97d0f98cbb1819 (patch)
treeb4cf2ea37940258d9c95d462811b27f8914c6518
parentd02b563ead89278fadbc52a37e4e59e06f15292f (diff)
downloadgvfs-e3fab1313117d8fefc98976b8c97d0f98cbb1819.tar.gz
gphoto2: include gvfsgphoto2utils.h conditionally
gvfsgphoto2utils.h causes build failure if gudev isn't available thus include the header conditionally. https://bugzilla.gnome.org/show_bug.cgi?id=736285
-rw-r--r--daemon/gvfsbackendgphoto2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/gvfsbackendgphoto2.c b/daemon/gvfsbackendgphoto2.c
index 39c4f77b..90d8dd92 100644
--- a/daemon/gvfsbackendgphoto2.c
+++ b/daemon/gvfsbackendgphoto2.c
@@ -38,6 +38,7 @@
#include <gphoto2.h>
#ifdef HAVE_GUDEV
#include <gudev/gudev.h>
+ #include "gvfsgphoto2utils.h"
#elif defined(HAVE_HAL)
#include <libhal.h>
#include <dbus/dbus.h>
@@ -62,7 +63,6 @@
#include "gvfsmonitor.h"
#include "gvfsjobseekwrite.h"
#include "gvfsicon.h"
-#include "gvfsgphoto2utils.h"
/* showing debug traces */
#if 1