diff options
author | David 'Digit' Turner <digit@google.com> | 2014-03-04 16:43:41 +0100 |
---|---|---|
committer | David 'Digit' Turner <digit@google.com> | 2014-03-05 23:57:46 +0100 |
commit | ea6d2197baff71a45f2bf95d3efbdef501cca76c (patch) | |
tree | cdc6f8bdde4b9c1916a83e61d0adb42c66c10f2f /tools | |
parent | 2ba70fd49bfcbb516e75c198c106764609335feb (diff) | |
download | frameworks_base-ea6d2197baff71a45f2bf95d3efbdef501cca76c.zip frameworks_base-ea6d2197baff71a45f2bf95d3efbdef501cca76c.tar.gz frameworks_base-ea6d2197baff71a45f2bf95d3efbdef501cca76c.tar.bz2 |
aidl: Support building with updated host sysroot.
This patch fixes tools/aidl/Type.cpp to compile with
a more recent SDK host toolchain sysroot (that has not
been submitted yet).
The main issue is that the code uses ssize_t which is
defined in <sys/types.h>, but didn't include the header
directly.
Apparently, this no longer compiles when using the Ubuntu
10.04 libc6-dev headers (the current SDK toolchain is
based on Ubuntu 8.04), so perform an explicit include
to fix this.
NOTE: This doesn't break the Windows SDK build.
Change-Id: Idcacf8f8d1c606b39bf8aa75ab409aa0c2a3cd5a
Diffstat (limited to 'tools')
-rw-r--r-- | tools/aidl/Type.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/aidl/Type.cpp b/tools/aidl/Type.cpp index d572af6..2267750 100644 --- a/tools/aidl/Type.cpp +++ b/tools/aidl/Type.cpp @@ -1,5 +1,7 @@ #include "Type.h" +#include <sys/types.h> + Namespace NAMES; Type* VOID_TYPE; |