[LTP] [PATCH] syscalls/sched_getparam03.c: Fix order of included headers

Xiao Yang yangx.jy@cn.fujitsu.com
Wed Jul 27 12:41:21 CEST 2016


Compilation failed on RHEL5.11GA and RHEL6.8GA because definition of clone()
function in sched.h will be replaced by the test.h defined clone(...) macro.

Signed-off-by: Xiao Yang <yangx.jy@cn.fujitsu.com>
---
 testcases/kernel/syscalls/sched_getparam/sched_getparam03.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/testcases/kernel/syscalls/sched_getparam/sched_getparam03.c b/testcases/kernel/syscalls/sched_getparam/sched_getparam03.c
index dec6e41..ceec4c3 100644
--- a/testcases/kernel/syscalls/sched_getparam/sched_getparam03.c
+++ b/testcases/kernel/syscalls/sched_getparam/sched_getparam03.c
@@ -70,10 +70,9 @@
  *
  *********************************************************************/
 
-#include "test.h"
-
 #include <errno.h>
 #include <sched.h>
+#include "test.h"
 
 #define LARGE_PID 999999
 
-- 
1.8.3.1





More information about the ltp mailing list