diff options
| author | Adam Lesinski <adamlesinski@google.com> | 2017-03-23 21:12:58 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-03-23 21:12:58 +0000 |
| commit | aa1d43230cf1f80267046024b18a5589e7669763 (patch) | |
| tree | b7ab83fae5d165e1513741bef0817d29db89a676 /libutils/include | |
| parent | 02842f213888f53a731fa55962aabbb94a354991 (diff) | |
| parent | cdbadafb4aca1a88676df92a2673fb76a7cf0088 (diff) | |
| download | system_core-aa1d43230cf1f80267046024b18a5589e7669763.tar.gz system_core-aa1d43230cf1f80267046024b18a5589e7669763.tar.bz2 system_core-aa1d43230cf1f80267046024b18a5589e7669763.zip | |
Merge "libziparchive: fix mac os breakage" am: 390f3b364c am: 7cfe1d69b0
am: cdbadafb4a
Change-Id: Ie327879eaea542911603640e36f0d867e05afd61
Diffstat (limited to 'libutils/include')
| -rw-r--r-- | libutils/include/utils/Compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libutils/include/utils/Compat.h b/libutils/include/utils/Compat.h index 2709e3b32..dee577e36 100644 --- a/libutils/include/utils/Compat.h +++ b/libutils/include/utils/Compat.h @@ -37,6 +37,10 @@ static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t o return pwrite(fd, buf, nbytes, offset); } +static inline int ftruncate64(int fd, off64_t length) { + return ftruncate(fd, length); +} + #endif /* __APPLE__ */ #if defined(_WIN32) |
