[liboobs] Check for HAVE_HAL when including libhal.h



commit c489dad6b67b2b7aed708f22c130c525c985003e
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Sat Feb 6 13:05:18 2010 +0100

    Check for HAVE_HAL when including libhal.h
    
    This should make HAL really optional.

 oobs/oobs-ifacesconfig.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/oobs/oobs-ifacesconfig.c b/oobs/oobs-ifacesconfig.c
index 8b664cc..81ea266 100644
--- a/oobs/oobs-ifacesconfig.c
+++ b/oobs/oobs-ifacesconfig.c
@@ -20,8 +20,12 @@
 
 #include <dbus/dbus.h>
 #include <glib-object.h>
-#include <libhal.h>
 #include <string.h>
+
+#ifdef HAVE_HAL
+#include <libhal.h>
+#endif
+
 #include "oobs-session-private.h"
 #include "oobs-list-private.h"
 #include "oobs-object-private.h"



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]