OSDN Git Service

Fix the mac host build of e2fsprogs
authorKen Sumrall <ksumrall@android.com>
Fri, 27 Apr 2012 02:27:17 +0000 (19:27 -0700)
committerKen Sumrall <ksumrall@android.com>
Fri, 27 Apr 2012 02:27:17 +0000 (19:27 -0700)
commit22218d379da521f6c74842085a4f348a4dfc9715
tree4871f33abb78e26c37710f76ed716729cc673cd9
parent8558eab78390d1924cd6b255686ceef133f294d5
Fix the mac host build of e2fsprogs

Mac OS doesn't support the O_DIRECT flag, so use the F_NOCACHE
option of fcntl() instead.  Fix taken from the libext2 project
on soruceforge.

Change-Id: I1e88a95e53f1bbbd8dbcfc7aa43a27443dfd6807
lib/ext2fs/unix_io.c