[PATCH] disable power-pmu and sonypic if __FreeBSD_kernel__ is defined
Aurelien Jarno
aurelien at aurel32.net
Mon May 11 14:23:38 PDT 2009
---
tools/hal-system-power-pmu.c | 6 +++---
tools/hal-system-sonypic.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/tools/hal-system-power-pmu.c b/tools/hal-system-power-pmu.c
index 0169901..51e6ef6 100644
--- a/tools/hal-system-power-pmu.c
+++ b/tools/hal-system-power-pmu.c
@@ -53,7 +53,7 @@
static int
pmac_sleep (void)
{
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
return FALSE; /* FIXME implement */
#elif sun
return FALSE; /* FIXME implement */
@@ -90,7 +90,7 @@ pmac_sleep (void)
static int
pmac_get_lcd_brightness (int *val)
{
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
return FALSE; /* FIXME implement */
#elif sun
return FALSE; /* FIXME implement */
@@ -127,7 +127,7 @@ pmac_get_lcd_brightness (int *val)
static int
pmac_set_lcd_brightness (int val)
{
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
return FALSE; /* FIXME implement */
#elif sun
return FALSE; /* FIXME implement */
diff --git a/tools/hal-system-sonypic.c b/tools/hal-system-sonypic.c
index ed90375..fabd9b7 100644
--- a/tools/hal-system-sonypic.c
+++ b/tools/hal-system-sonypic.c
@@ -63,7 +63,7 @@
static int
sonypi_get_lcd_brightness (__u8 *val)
{
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
return FALSE; /* FIXME implement */
#elif sun
return FALSE; /* FIXME implement */
@@ -163,7 +163,7 @@ error_set:
static int
sonypi_set_lcd_brightness (__u8 val)
{
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
return FALSE; /* FIXME implement */
#elif sun
return FALSE; /* FIXME implement */
@@ -195,7 +195,7 @@ sonypi_set_lcd_brightness (__u8 val)
static int
sonypi_set_bluetooth_power (int val)
{
-#ifdef __FreeBSD__
+#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
return FALSE; /* FIXME implement */
#elif sun
return FALSE; /* FIXME implement */
--
1.6.1.3
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien at aurel32.net http://www.aurel32.net
More information about the hal
mailing list