mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/jaegeuk/f2fs-tools.git
synced 2024-11-23 01:33:39 +08:00
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:
parent
7326e5aff3
commit
83f090d220
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user