]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
Remove dropped const warning and enable pread/pwrite for Android build
authorTheodore Ts'o <tytso@mit.edu>
Mon, 13 Jul 2015 14:58:33 +0000 (10:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 13 Jul 2015 14:58:33 +0000 (10:58 -0400)
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/create_inode.c
util/android_config.h

index 294ac5e596ac8cfd6d67006a40a576f07dccf04d..1738c363b045617846df2a2dc9814b31826f67ab 100644 (file)
@@ -383,7 +383,7 @@ errcode_t do_mkdir_internal(ext2_filsys fs, ext2_ino_t cwd, const char *name,
 }
 
 #if !defined HAVE_PREAD64 && !defined HAVE_PREAD
-static ssize_t my_pread(int fd, const void *buf, size_t count, off_t offset)
+static ssize_t my_pread(int fd, void *buf, size_t count, off_t offset)
 {
        if (lseek(fd, offset, SEEK_SET) < 0)
                return 0;
index 374becbd43302deae4d73eaebff965e460135375..51db48768101bd386a1cb99e04a4623995c0c8e0 100644 (file)
 #define HAVE_NETINET_IN_H 1
 #define HAVE_NET_IF_H 1
 #define HAVE_POSIX_MEMALIGN 1
+#define HAVE_PREAD 1
+#define HAVE_PREAD64 1
+#define HAVE_PWRITE 1
+#define HAVE_PWRITE64 1
 #define HAVE_SETJMP_H 1
 #define HAVE_SNPRINTF 1
 #define HAVE_STDLIB_H 1