summaryrefslogtreecommitdiffstats
path: root/openbsd/Battery.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd/Battery.c')
-rw-r--r--openbsd/Battery.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/openbsd/Battery.c b/openbsd/Battery.c
index 3a0bae14..80511dc7 100644
--- a/openbsd/Battery.c
+++ b/openbsd/Battery.c
@@ -10,6 +10,7 @@ in the source distribution for its full text.
#include <sys/sysctl.h>
#include <sys/sensors.h>
#include <errno.h>
+#include <string.h>
static bool findDevice(const char* name, int* mib, struct sensordev* snsrdev, size_t* sdlen) {
for (int devn = 0;; devn++) {