Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d5d633b authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am 20eb7ac2: am 3c8bdef0: Merge "libsparse: Use BIONIC implementation of mmap64()"

* commit '20eb7ac2':
  libsparse: Use BIONIC implementation of mmap64()
parents 1998e505 20eb7ac2
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -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; })