diff options
| author | Adam Lesinski <adamlesinski@google.com> | 2017-03-23 11:57:05 -0700 |
|---|---|---|
| committer | Adam Lesinski <adamlesinski@google.com> | 2017-03-23 12:02:09 -0700 |
| commit | b02d690336a0fb7b26338c5f663397debcbf99e2 (patch) | |
| tree | 3e4919a3782317119d980b3ac008ac28cb168eba /libutils/include | |
| parent | 0e19795a621ddb9912edc58b832f078405e485fd (diff) | |
| download | system_core-b02d690336a0fb7b26338c5f663397debcbf99e2.tar.gz system_core-b02d690336a0fb7b26338c5f663397debcbf99e2.tar.bz2 system_core-b02d690336a0fb7b26338c5f663397debcbf99e2.zip | |
libziparchive: fix mac os breakage
Add ftruncate64 to utils/Compat.h definitions for mac.
Change-Id: I82cb46927be911e867b606f4f4429a5e1b1987f7
Test: builds on mac
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) |
