vp-build/templates/gkrellm/gkrellm-fix-sensors.diff
Juan RP fa2748d9b2 Reorganize the templates directory for possible future changes.
Now every template uses its own directory. Patches, prepost* files
and other related stuff are stored there.

--HG--
extra : convert_revision : bbc529ef161d9a59fe13a1d54ac058f77ea05845
2009-02-03 21:35:57 +01:00

12 lines
352 B
Diff

--- src/sysdeps/netbsd.c.orig 2008-10-10 07:31:19.000000000 +0200
+++ src/sysdeps/netbsd.c 2008-10-10 07:31:46.000000000 +0200
@@ -505,7 +505,7 @@ gkrellm_sys_battery_read_data(void)
#endif
}
- fd = open(SENSORS_DIR, O_RDONLY);
+ fd = open(SENSORS_DIR, O_RDWR);
if (fd < 0) return;
data.sensor = battery_acpi_data[0].on_line_index;