From: Theodore Ts'o Date: Mon, 13 Jul 2015 14:58:33 +0000 (-0400) Subject: Remove dropped const warning and enable pread/pwrite for Android build X-Git-Tag: v1.43-WIP-2016-03-15~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7134a9ece545b26e9d1d2b7240427064d5344fe;p=thirdparty%2Fe2fsprogs.git Remove dropped const warning and enable pread/pwrite for Android build Signed-off-by: Theodore Ts'o --- diff --git a/misc/create_inode.c b/misc/create_inode.c index 294ac5e59..1738c363b 100644 --- a/misc/create_inode.c +++ b/misc/create_inode.c @@ -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; diff --git a/util/android_config.h b/util/android_config.h index 374becbd4..51db48768 100644 --- a/util/android_config.h +++ b/util/android_config.h @@ -23,6 +23,10 @@ #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