From fccfa414c96061689676a8803e3492f992618486 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Tue, 11 Dec 2012 08:39:57 -0800 Subject: [PATCH] libsparse: Use BIONIC implementation of mmap64() Change-Id: I63692629d3a62b7aee21202b67241904b1cc9789 Signed-off-by: Daniel Leung --- libsparse/output_file.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/libsparse/output_file.c b/libsparse/output_file.c index 5014e4a87..24280227e 100644 --- a/libsparse/output_file.c +++ b/libsparse/output_file.c @@ -46,15 +46,6 @@ #define off64_t off_t #endif -#ifdef __BIONIC__ -extern void* __mmap2(void *, size_t, int, int, int, off_t); -static inline void *mmap64(void *addr, size_t length, int prot, int flags, - int fd, off64_t offset) -{ - return __mmap2(addr, length, prot, flags, fd, offset >> 12); -} -#endif - #define min(a, b) \ ({ typeof(a) _a = (a); typeof(b) _b = (b); (_a < _b) ? _a : _b; })