diff options
author | Raphael Moll <raphael@google.com> | 2012-02-03 23:02:33 -0800 |
---|---|---|
committer | Raphael Moll <raphael@google.com> | 2012-02-16 13:15:04 -0800 |
commit | 4605b3fb8a00fa37f617a8d0fe3a095d0503a845 (patch) | |
tree | 648c0e8c3df25c4139cebb442c905b4ddc8ef99a /ext4_utils/ext4fixup.c | |
parent | 3ee934fecdf8148ed5ea499932aedcca7530830c (diff) | |
download | extras-4605b3fb8a00fa37f617a8d0fe3a095d0503a845.tar.gz |
Adapt ext4_utils for windows.
This is not a full port of ext4_utils for windows.
Instead it merely enables use to use the library
for the 'create an empty fs image' functionality
as used by 'fastboot format'.
Change-Id: Ia1ffacd64e4233c4fbb369c4ac5927ccd72ac526
Diffstat (limited to 'ext4_utils/ext4fixup.c')
-rw-r--r-- | ext4_utils/ext4fixup.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext4_utils/ext4fixup.c b/ext4_utils/ext4fixup.c index 5e04602a..c664ac3a 100644 --- a/ext4_utils/ext4fixup.c +++ b/ext4_utils/ext4fixup.c @@ -24,10 +24,13 @@ #include <sys/types.h> #include <sys/stat.h> #include <sys/types.h> -#include <sys/mman.h> #include <fcntl.h> #include <unistd.h> +#ifndef USE_MINGW +#include <sys/mman.h> +#endif + #if defined(__APPLE__) && defined(__MACH__) #define lseek64 lseek #define off64_t off_t |