summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hackmann <ghackmann@google.com>2015-04-16 10:55:40 -0700
committerEmil Velikov <emil.l.velikov@gmail.com>2015-04-28 11:22:31 +0100
commit0c8db0a563857239cfe2b38df1590c571db5a1f1 (patch)
treeba56e7bb8cee71ceef6c020a01ad5a55ff044c81
parente2b531866f9be4b3b1dd9b42f7dda816183792b0 (diff)
Add missing <strings.h> includes
A couple of files use ffs() without explicitly including strings.h. Some systems will pull in ffs()'s declaration through another header anyway, but not when compiling against bionic in AOSP master. Signed-off-by: Greg Hackmann <ghackmann@google.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
-rw-r--r--nouveau/nouveau.c1
-rw-r--r--tests/modetest/modetest.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/nouveau/nouveau.c b/nouveau/nouveau.c
index 687bbb02..0071249e 100644
--- a/nouveau/nouveau.c
+++ b/nouveau/nouveau.c
@@ -30,6 +30,7 @@
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
+#include <strings.h>
#include <stdbool.h>
#include <assert.h>
#include <errno.h>
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index 53dfe05b..63d2059c 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -50,6 +50,7 @@
#include <inttypes.h>
#include <unistd.h>
#include <string.h>
+#include <strings.h>
#include <errno.h>
#include <sys/poll.h>
#include <sys/time.h>