OSDN Git Service

Explicitly include string.h
authorRob Herring <robh@kernel.org>
Wed, 24 Jan 2018 14:21:50 +0000 (08:21 -0600)
committerRob Herring <robh@kernel.org>
Wed, 24 Jan 2018 14:21:50 +0000 (08:21 -0600)
The master build started failing on strcmp and memset being undeclared, so
explicitly include string.h.

Change-Id: I55d042b34e55375ed50f9300ab0c3abdfa0f2631
Signed-off-by: Rob Herring <robh@kernel.org>
gralloc.cpp
gralloc_gbm.cpp

index 8db7f45..cf9f9c1 100644 (file)
@@ -27,6 +27,7 @@
 #include <cutils/log.h>
 #include <stdlib.h>
 #include <stdarg.h>
+#include <string.h>
 #include <pthread.h>
 #include <errno.h>
 
index cfabdf0..e4bc9d8 100644 (file)
@@ -28,6 +28,7 @@
 #include <cutils/atomic.h>
 #include <cutils/properties.h>
 #include <stdlib.h>
+#include <string.h>
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/stat.h>