summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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__)