diff options
author | Feiyang Chen <chenfeiyang@loongson.cn> | 2023-03-04 15:28:43 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2023-03-20 16:45:22 +0100 |
commit | a438e528b68fe81c10833538bd454e9f59d092a2 (patch) | |
tree | 939636894b592f5c47ed0dc30bcacd8506feabf4 /tools/include/nolibc/sys.h | |
parent | tools/nolibc: check for S_I* macros before defining them (diff) | |
download | linux-a438e528b68fe81c10833538bd454e9f59d092a2.tar.xz linux-a438e528b68fe81c10833538bd454e9f59d092a2.zip |
tools/nolibc: Include linux/fcntl.h and remove duplicate code
Include linux/fcntl.h for O_* and AT_*. asm/fcntl.h is included
by linux/fcntl.h, so it can be safely removed.
Signed-off-by: Feiyang Chen <chenfeiyang@loongson.cn>
Acked-by: Huacai Chen <chenhuacai@loongson.cn>
Signed-off-by: Willy Tarreau <w@1wt.eu>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'tools/include/nolibc/sys.h')
-rw-r--r-- | tools/include/nolibc/sys.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index 115579e7f1db..41cad6d6137e 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -11,7 +11,6 @@ #include "std.h" /* system includes */ -#include <asm/fcntl.h> // for O_* #include <asm/unistd.h> #include <asm/signal.h> // for SIGCHLD #include <asm/ioctls.h> @@ -20,6 +19,7 @@ #include <linux/loop.h> #include <linux/time.h> #include <linux/auxvec.h> +#include <linux/fcntl.h> // for O_* and AT_* #include "arch.h" #include "errno.h" |