OSDN Git Service

Add missing <strings.h> includes
authorGreg Hackmann <ghackmann@google.com>
Thu, 16 Apr 2015 17:55:40 +0000 (10:55 -0700)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 28 Apr 2015 10:22:31 +0000 (11:22 +0100)
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>
nouveau/nouveau.c
tests/modetest/modetest.c

index 687bbb0..0071249 100644 (file)
@@ -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>
index 53dfe05..63d2059 100644 (file)
@@ -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>