Whamcloud - gitweb
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 294ac5e..1738c36 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 374becb..51db487 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