projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec1587e
)
Only include `dict_get_double' when using IOKit or CoreFoundation. This caused a...
author
octo
<octo>
Fri, 21 Apr 2006 06:46:49 +0000
(06:46 +0000)
committer
octo
<octo>
Fri, 21 Apr 2006 06:46:49 +0000
(06:46 +0000)
src/battery.c
patch
|
blob
|
history
diff --git
a/src/battery.c
b/src/battery.c
index
10e8c00
..
2141a58
100644
(file)
--- a/
src/battery.c
+++ b/
src/battery.c
@@
-202,6
+202,7
@@
static void battery_submit (char *inst, double current, double voltage, double c
}
}
+#if HAVE_IOKIT_PS_IOPOWERSOURCES_H || HAVE_IOKIT_IOKITLIB_H
double dict_get_double (CFDictionaryRef dict, char *key_string)
{
double val_double;
@@
-249,6
+250,7
@@
double dict_get_double (CFDictionaryRef dict, char *key_string)
return (val_double);
}
+#endif /* HAVE_IOKIT_PS_IOPOWERSOURCES_H || HAVE_IOKIT_IOKITLIB_H */
#if HAVE_IOKIT_PS_IOPOWERSOURCES_H
static void get_via_io_power_sources (double *ret_charge,