OSDN Git Service

ext4_utils: Fix OSX build
authorColin Cross <ccross@android.com>
Thu, 6 Jan 2011 02:05:34 +0000 (18:05 -0800)
committerColin Cross <ccross@android.com>
Thu, 6 Jan 2011 02:05:34 +0000 (18:05 -0800)
Change-Id: I8e70081c75148638edaeb0cb3d376accb3bf3965

ext4_utils/ext4_utils.h
ext4_utils/simg2img.c

index eea40d5..8f3a64d 100644 (file)
@@ -32,6 +32,8 @@
 
 #if defined(__APPLE__) && defined(__MACH__)
 #define lseek64 lseek
+#define ftruncate64 ftruncate
+#define mmap64 mmap
 #define off64_t off_t
 #endif
 
index 2c03702..f2e3149 100644 (file)
 #include <fcntl.h>
 #include <stdio.h>
 
-#if defined(__APPLE__) && defined(__MACH__)
-#define lseek64 lseek
-#define off64_t off_t
-#endif
-
 #define COPY_BUF_SIZE (1024*1024)
 u8 *copybuf;