[PATCH] build problems when not using HAL



Hi

Attached patch fixes the build for gnome-applets when HAL is not used.

Ok to commit?
-- 
Rodrigo Moya <rodrigo gnome-db org>
? docs/battstat-C.omf
? docs/battstat-uk.omf
? docs/uk/.xml2po.mo
? docs/uk/battstat.xml
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-applets/battstat/ChangeLog,v
retrieving revision 1.181
diff -u -p -r1.181 ChangeLog
--- ChangeLog	26 Aug 2005 03:45:47 -0000	1.181
+++ ChangeLog	30 Aug 2005 10:06:10 -0000
@@ -1,3 +1,8 @@
+2005-08-30  Rodrigo Moya <rodrigo novell com>
+
+	* power-management.c (power_management_using_hal): fixed compilation
+	without HAL.
+
 2005-08-25  Ryan Lortie  <desrt desrt ca>
 
 	* battstat_applet.c:
Index: power-management.c
===================================================================
RCS file: /cvs/gnome/gnome-applets/battstat/power-management.c,v
retrieving revision 1.10
diff -u -p -r1.10 power-management.c
--- power-management.c	26 Aug 2005 03:45:47 -0000	1.10
+++ power-management.c	30 Aug 2005 10:06:10 -0000
@@ -523,5 +523,9 @@ power_management_cleanup( void )
 int
 power_management_using_hal( void )
 {
+#ifdef HAVE_HAL
   return using_hal;
+#else
+  return 0;
+#endif
 }


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