From mboxrd@z Thu Jan 1 00:00:00 1970 From: Viresh Kumar Date: Thu, 27 Feb 2020 10:44:31 +0530 Subject: [LTP] [PATCH V5 03/10] lapi/fsmount.h: Include "lapi/fcntl.h" In-Reply-To: References: Message-ID: <7a20c9dc8df8c99f07d5aff5c153a38b21dbdc19.1582779464.git.viresh.kumar@linaro.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it All the files that include (and that will include it in future) are most probably going to need the definitions from "lapi/fcntl.h", include it directly instead of , which will break it for old RHL distros. Acked-by: Petr Vorel Acked-by: Li Wang Signed-off-by: Viresh Kumar --- include/lapi/fsmount.h | 2 +- testcases/kernel/syscalls/fsmount/fsmount01.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/include/lapi/fsmount.h b/include/lapi/fsmount.h index a6a24904e66d..5e5eaca7e6ff 100644 --- a/include/lapi/fsmount.h +++ b/include/lapi/fsmount.h @@ -7,12 +7,12 @@ #ifndef FSMOUNT_H__ #define FSMOUNT_H__ -#include #include #include #include #include "config.h" +#include "lapi/fcntl.h" #include "lapi/syscalls.h" #ifndef HAVE_FSOPEN diff --git a/testcases/kernel/syscalls/fsmount/fsmount01.c b/testcases/kernel/syscalls/fsmount/fsmount01.c index 8e29a1537334..514d3b0b38f8 100644 --- a/testcases/kernel/syscalls/fsmount/fsmount01.c +++ b/testcases/kernel/syscalls/fsmount/fsmount01.c @@ -10,7 +10,6 @@ #include #include "tst_test.h" -#include "lapi/fcntl.h" #include "lapi/fsmount.h" #define MNTPOINT "newmount_point" -- 2.21.0.rc0.269.g1a574e7a288b