diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2015-09-28 16:02:35 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-09-28 16:02:35 +0000 |
commit | c6ca7a5a31e07e26dac45fe0d8199fd75be721f3 (patch) | |
tree | 3bc1d954ad3fe518c8f2f689369e363868c25fa4 /include/utils | |
parent | cb2ab20d480cdf488e5b5bf37dc55ca7f0ddee67 (diff) | |
parent | eccf0a4502293d628152888be85d1cd6fa0b4751 (diff) |
am eccf0a45: Merge "utils: add pwrite64 to Compat.h for Mac"
* commit 'eccf0a4502293d628152888be85d1cd6fa0b4751':
utils: add pwrite64 to Compat.h for Mac
Diffstat (limited to 'include/utils')
-rw-r--r-- | include/utils/Compat.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/utils/Compat.h b/include/utils/Compat.h index c5f9d6a80..b2ba55ef1 100644 --- a/include/utils/Compat.h +++ b/include/utils/Compat.h @@ -33,6 +33,10 @@ static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) return pread(fd, buf, nbytes, offset); } +static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { + return pwrite(fd, buf, nbytes, offset); +} + #endif /* __APPLE__ */ #if defined(_WIN32) |