OSDN Git Service

aidl: Support building with updated host sysroot.
authorDavid 'Digit' Turner <digit@google.com>
Tue, 4 Mar 2014 15:43:41 +0000 (16:43 +0100)
committerDavid 'Digit' Turner <digit@google.com>
Wed, 5 Mar 2014 22:57:46 +0000 (23:57 +0100)
commitea6d2197baff71a45f2bf95d3efbdef501cca76c
treecdc6f8bdde4b9c1916a83e61d0adb42c66c10f2f
parent2ba70fd49bfcbb516e75c198c106764609335feb
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
tools/aidl/Type.cpp