diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2019-07-12 14:38:43 +0200 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2019-07-12 14:44:03 +0200 |
commit | 02a47cd19641a04f6cf8d486cbb8882a1819c661 (patch) | |
tree | d96d1aa5b9b585e475cab3663aa7da90e1f0aedc | |
parent | 1999d5cf555c6f373549840d40f8565dcabad93b (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).
-rw-r--r-- | src/print_battery_info.c | 1 |
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__) |