summaryrefslogtreecommitdiff
path: root/src/print_battery_info.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2019-07-12 14:38:43 +0200
committerMichael Stapelberg <michael@stapelberg.de>2019-07-12 14:44:03 +0200
commit02a47cd19641a04f6cf8d486cbb8882a1819c661 (patch)
treed96d1aa5b9b585e475cab3663aa7da90e1f0aedc /src/print_battery_info.c
parent1999d5cf555c6f373549840d40f8565dcabad93b (diff)
battery: include sys/sysctl.h on OpenBSD
This is required so that CTL_HW and others are defined (ran into this on OpenBSD 6.5).
Diffstat (limited to 'src/print_battery_info.c')
-rw-r--r--src/print_battery_info.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/print_battery_info.c b/src/print_battery_info.c
index e2a790c..a36b05f 100644
--- a/src/print_battery_info.c
+++ b/src/print_battery_info.c
@@ -34,6 +34,7 @@
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/sensors.h>
+#include <sys/sysctl.h>
#endif
#if defined(__NetBSD__)