OSDN Git Service

minigbm: cros_gralloc: fix -Wimplicit-function-declaration warnings in gralloctest
authorGurchetan Singh <gurchetansingh@chromium.org>
Wed, 25 Apr 2018 22:29:32 +0000 (15:29 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Thu, 26 Apr 2018 20:01:43 +0000 (13:01 -0700)
The arcnext compiler seems to throw more warnings.

BUG=none
TEST=compile for kevin arc-next

Change-Id: Ib7b0518d675db06549312a2e7b814093d75424f5
Reviewed-on: https://chromium-review.googlesource.com/1029354
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
cros_gralloc/gralloc0/tests/gralloctest.c

index 9fc3b88..9160e62 100644 (file)
@@ -14,6 +14,8 @@
 #define _GNU_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
 
 #include <cutils/native_handle.h>
 #include <hardware/gralloc.h>