f2fs-tools: remove linux/fcntl.h but define the hint directly

It's complicated to address libc and kernel headers.

Reviewed-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
This commit is contained in:
Jaegeuk Kim 2024-10-15 00:10:45 +00:00
parent 7326e5aff3
commit 83f090d220

View File

@ -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