blob: 49ee8446fc44aa612ed05bbb108430727c49b4e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
diff -Naur dockapps.orig/libacpi.c dockapps/libacpi.c
--- dockapps.orig/libacpi.c 2015-01-12 11:24:15.000000000 +0100
+++ dockapps/libacpi.c 2020-05-29 22:33:52.526826841 +0200
@@ -17,6 +17,9 @@
#define SYSFS_DATA_SOURCE 1
static int data_source;
+battery_t batteries[MAXBATT];
+int verbosity;
+
/* local proto */
int acpi_get_design_cap(int batt);
diff -Naur dockapps.orig/libacpi.h dockapps/libacpi.h
--- dockapps.orig/libacpi.h 2015-01-12 11:24:15.000000000 +0100
+++ dockapps/libacpi.h 2020-05-29 22:33:36.393811163 +0200
@@ -128,8 +128,8 @@
/* Since these /are/ needed here . . . */
-battery_t batteries[MAXBATT];
-int verbosity;
+extern battery_t batteries[MAXBATT];
+extern int verbosity;
/* check if apm/acpi is enabled, etc */
int power_init(global_t *globals);
|