diff options
author | Nanik Tolaram <nanikjava@gmail.com> | 2015-02-14 00:26:59 +1100 |
---|---|---|
committer | Nanik Tolaram <nanikjava@gmail.com> | 2015-02-14 00:26:59 +1100 |
commit | ee9701744a01acb558cb1082de9cc1415d0dbaff (patch) | |
tree | a956a802512d4619f847ce8dd9cc4cd9181c4c54 /services | |
parent | 8511b3ae5eb42810f97f7c3e993d7f80d3393b83 (diff) | |
download | frameworks_native-ee9701744a01acb558cb1082de9cc1415d0dbaff.zip frameworks_native-ee9701744a01acb558cb1082de9cc1415d0dbaff.tar.gz frameworks_native-ee9701744a01acb558cb1082de9cc1415d0dbaff.tar.bz2 |
Error compiling waitforvsync.cpp
The waitforvsync.cpp throws error when compiling. Following is the error log
target thumb C++: test-waitforvsync <= frameworks/native/services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp
frameworks/native/services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp: In function 'int main(int, char**)':
frameworks/native/services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp:43:17: error: 'close' was not declared in this scope
close(fd);
^
....
....
make: *** [out/target/product/grouper/obj/EXECUTABLES/test-waitforvsync_intermediates/waitforvsync.o] Error 1
the file is missing #include <unistd.h>
Change-Id: I57728dbde65641cd3138625f9a590f9db8648158
Signed-off-by: Nanik Tolaram <nanikjava@gmail.com>
Diffstat (limited to 'services')
-rw-r--r-- | services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp b/services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp index 279b88b..b88b04a 100644 --- a/services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp +++ b/services/surfaceflinger/tests/waitforvsync/waitforvsync.cpp @@ -23,6 +23,7 @@ #include <errno.h> #include <string.h> #include <stdio.h> +#include <unistd.h> #ifndef FBIO_WAITFORVSYNC #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) |