diff mbox series

[f2fs-dev,2/2] f2fs-tools: add HAVE_PREAD and HAVE_PWRITE

Message ID 20241210082801.4104194-2-weilongping@oppo.com (mailing list archive)
State Superseded
Headers show
Series [f2fs-dev,1/2] f2fs-tools: use pread and pwrite when they are available. | expand

Commit Message

LongPing Wei Dec. 10, 2024, 8:28 a.m. UTC
This patch enable pread and pwrite on Android platform.

Signed-off-by: LongPing Wei <weilongping@oppo.com>
---
 include/android_config.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/android_config.h b/include/android_config.h
index f5cd4de..b11e2e4 100644
--- a/include/android_config.h
+++ b/include/android_config.h
@@ -36,6 +36,8 @@ 
 #define HAVE_FSTAT64 1
 #define HAVE_GETMNTENT 1
 #define HAVE_MEMSET 1
+#define HAVE_PREAD 1
+#define HAVE_PWRITE 1
 #define HAVE_SELINUX_ANDROID_H 1
 #define HAVE_SETMNTENT 1
 #define HAVE_SPARSE_SPARSE_H 1