Created
January 11, 2016 16:15
-
-
Save nanpuyue/a3865ca7def05d4af101 to your computer and use it in GitHub Desktop.
make-ext4fs(2015-12-02) pacth for cygwin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru a/ext4_utils.h b/ext4_utils.h | |
--- a/ext4_utils.h 2016-01-10 21:05:12.000000000 +0800 | |
+++ b/ext4_utils.h 2016-01-11 23:55:44.369117700 +0800 | |
@@ -38,7 +38,7 @@ | |
#include <setjmp.h> | |
#include <stdint.h> | |
-#if defined(__APPLE__) && defined(__MACH__) | |
+#if (defined(__APPLE__) && defined(__MACH__)) || defined(__CYGWIN__) | |
#define lseek64 lseek | |
#define ftruncate64 ftruncate | |
#define mmap64 mmap | |
diff -ru a/ext4fixup.c b/ext4fixup.c | |
--- a/ext4fixup.c 2016-01-10 21:05:12.000000000 +0800 | |
+++ b/ext4fixup.c 2016-01-11 23:55:44.361148300 +0800 | |
@@ -27,7 +27,7 @@ | |
#include <fcntl.h> | |
#include <unistd.h> | |
-#if defined(__APPLE__) && defined(__MACH__) | |
+#if (defined(__APPLE__) && defined(__MACH__)) || defined(__CYGWIN__) | |
#define lseek64 lseek | |
#define off64_t off_t | |
#endif | |
diff -ru a/libsparse/output_file.c b/libsparse/output_file.c | |
--- a/libsparse/output_file.c 2016-01-10 21:05:12.000000000 +0800 | |
+++ b/libsparse/output_file.c 2016-01-11 23:55:44.377099800 +0800 | |
@@ -35,7 +35,7 @@ | |
#include "sparse_crc32.h" | |
#include "sparse_format.h" | |
-#if defined(__APPLE__) && defined(__MACH__) | |
+#if (defined(__APPLE__) && defined(__MACH__)) || defined(__CYGWIN__) | |
#define lseek64 lseek | |
#define ftruncate64 ftruncate | |
#define mmap64 mmap | |
diff -ru a/libsparse/sparse_read.c b/libsparse/sparse_read.c | |
--- a/libsparse/sparse_read.c 2016-01-10 21:05:12.000000000 +0800 | |
+++ b/libsparse/sparse_read.c 2016-01-11 23:55:44.381100100 +0800 | |
@@ -35,7 +35,7 @@ | |
#include "sparse_file.h" | |
#include "sparse_format.h" | |
-#if defined(__APPLE__) && defined(__MACH__) | |
+#if (defined(__APPLE__) && defined(__MACH__)) || defined(__CYGWIN__) | |
#define lseek64 lseek | |
#define off64_t off_t | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment