Message ID | 20241015002331.2724827-1-jaegeuk@kernel.org (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [f2fs-dev] f2fs-tools: remove linux/fcntl.h but define the hint directly | expand |
On 2024/10/15 8:23, Jaegeuk Kim via Linux-f2fs-devel wrote: > It's complicated to address libc and kernel headers. > > Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> Reviewed-by: Chao Yu <chao@kernel.org> Thanks,
diff --git a/lib/libf2fs_io.c b/lib/libf2fs_io.c index 1923c0b87dfc..520ae0362fd4 100644 --- a/lib/libf2fs_io.c +++ b/lib/libf2fs_io.c @@ -34,16 +34,16 @@ #include <linux/hdreg.h> #endif +#ifndef F_SET_RW_HINT +#define F_LINUX_SPECIFIC_BASE 1024 +#define F_SET_RW_HINT (F_LINUX_SPECIFIC_BASE + 12) +#endif + #include <stdbool.h> #include <assert.h> #include <inttypes.h> #include "f2fs_fs.h" -#ifdef HAVE_LINUX_FCNTL_H -#define HAVE_ARCH_STRUCT_FLOCK -#include <linux/fcntl.h> -#endif - struct f2fs_configuration c; #ifdef HAVE_SPARSE_SPARSE_H
It's complicated to address libc and kernel headers. Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org> --- lib/libf2fs_io.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)