summaryrefslogtreecommitdiffstats
path: root/libsensors
diff options
context:
space:
mode:
Diffstat (limited to 'libsensors')
-rw-r--r--libsensors/akm8975.c1
-rw-r--r--libsensors/lps331ap.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libsensors/akm8975.c b/libsensors/akm8975.c
index 47771fb..c13c339 100644
--- a/libsensors/akm8975.c
+++ b/libsensors/akm8975.c
@@ -21,6 +21,7 @@
#include <stdint.h>
#include <fcntl.h>
#include <errno.h>
+#include <string.h>
#include <hardware/sensors.h>
#include <hardware/hardware.h>
diff --git a/libsensors/lps331ap.c b/libsensors/lps331ap.c
index a8ef55a..c177622 100644
--- a/libsensors/lps331ap.c
+++ b/libsensors/lps331ap.c
@@ -21,6 +21,7 @@
#include <fcntl.h>
#include <errno.h>
#include <math.h>
+#include <string.h>
#include <sys/types.h>
#include <linux/ioctl.h>
#include <linux/input.h>