OSDN Git Service

Fix the mac build of e2fsprogs
authorKen Sumrall <ksumrall@android.com>
Sat, 28 Apr 2012 06:22:59 +0000 (23:22 -0700)
committerKen Sumrall <ksumrall@android.com>
Sat, 28 Apr 2012 06:22:59 +0000 (23:22 -0700)
commitee85edaf74adfc962ff0281b24aa7aa65a4eff1b
treee0f92411c04699dd20b56031828b10b86a52d36c
parent22218d379da521f6c74842085a4f348a4dfc9715
Fix the mac build of e2fsprogs

Android builds for MacOS 10.5.  The new version version of e2fsprogs requires
posix_memalign(), which was added in MacOS 10.6.  Since MacOS doesn't provide
memalign() either, the only option is to use valloc().  This patch was inspired
by a patch to e2fsprogs that came from the macports port of e2fsprogs.

Change-Id: If1334ce409985c1bdba4384ada8ecbc3dec56d81
lib/ext2fs/ext2fs.h