From 6b967d7ea2c507fbeeab0d3b830550c23f0adb8c Mon Sep 17 00:00:00 2001 From: Yongqin Liu Date: Wed, 31 May 2017 13:21:44 +0100 Subject: ashmemtest-basic/ashmemtest.c: fix compiling error for master include sys/sysmacros.h explicitly, otherwise will have following error: 07:23:53 external/linaro-android-kernel-test/ashmemtest-basic/ashmemtest.c:117:9: error: implicit declaration of function 'major' is invalid in C99 [-Werror,-Wimplicit-function-declaration] 07:23:53 if (major (st.st_rdev) != ASHMEM_MAJOR) Change-Id: I2d28214e708382e7e00c9954708688b51fd96c2c Signed-off-by: Yongqin Liu --- ashmemtest-basic/ashmemtest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ashmemtest-basic/ashmemtest.c b/ashmemtest-basic/ashmemtest.c index 082e93f..df1177b 100644 --- a/ashmemtest-basic/ashmemtest.c +++ b/ashmemtest-basic/ashmemtest.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -28,7 +29,7 @@ #ifdef ANDROID /* In-tree compilation */ -#include +#include #else /* Freestanding compilation, use local copy */ #include "ashmem.h" -- cgit v1.2.3