include/lapi/fcntl.h: Do not include tee and splice

The newly added fcntl34 test uses newlib and includes lapi/fcntl.h. The
fcntl header includes fallback defitions for splice and tee which are
exposed on older distros. The fallback defitions calls ltp_syscall()
that calls tst_brkm() which is not available under the newlibrary and
hence the compilation fails.

This commit removes the tee.h, splice.h, and vmsplice.h from fcntl.h and
adds these directly to the testcases if needed.

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
diff --git a/include/lapi/fcntl.h b/include/lapi/fcntl.h
index c4d4fb5..ca61288 100644
--- a/include/lapi/fcntl.h
+++ b/include/lapi/fcntl.h
@@ -105,8 +105,4 @@
 # define SPLICE_F_NONBLOCK 2
 #endif
 
-#include "lapi/splice.h"
-#include "lapi/vmsplice.h"
-#include "lapi/tee.h"
-
 #endif /* __LAPI_FCNTL_H__ */
diff --git a/testcases/kernel/syscalls/tee/tee01.c b/testcases/kernel/syscalls/tee/tee01.c
index fcf0340..6e1f46f 100644
--- a/testcases/kernel/syscalls/tee/tee01.c
+++ b/testcases/kernel/syscalls/tee/tee01.c
@@ -37,6 +37,8 @@
 #include "linux_syscall_numbers.h"
 #include "safe_macros.h"
 #include "lapi/fcntl.h"
+#include "lapi/tee.h"
+#include "lapi/splice.h"
 
 static void tee_test(void);
 static void setup(void);
diff --git a/testcases/kernel/syscalls/vmsplice/vmsplice01.c b/testcases/kernel/syscalls/vmsplice/vmsplice01.c
index e514aa9..1519efc 100644
--- a/testcases/kernel/syscalls/vmsplice/vmsplice01.c
+++ b/testcases/kernel/syscalls/vmsplice/vmsplice01.c
@@ -37,6 +37,8 @@
 #include "linux_syscall_numbers.h"
 #include "safe_macros.h"
 #include "lapi/fcntl.h"
+#include "lapi/splice.h"
+#include "lapi/vmsplice.h"
 
 #define TEST_BLOCK_SIZE (1<<17)	/* 128K */
 
diff --git a/testcases/kernel/syscalls/vmsplice/vmsplice02.c b/testcases/kernel/syscalls/vmsplice/vmsplice02.c
index 436adf3..bd14b00 100644
--- a/testcases/kernel/syscalls/vmsplice/vmsplice02.c
+++ b/testcases/kernel/syscalls/vmsplice/vmsplice02.c
@@ -38,6 +38,7 @@
 #include "safe_macros.h"
 #include "linux_syscall_numbers.h"
 #include "lapi/fcntl.h"
+#include "lapi/vmsplice.h"
 
 #define TESTFILE "testfile"