syscalls/*: Fix order of included headers
PATCH 1/1 syscalls/*: Fix order of included headers
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 <[email protected]>
--- testcases/kernel/ipc/semaphore/sem02.c | 2 +- testcases/kernel/syscalls/sched_setparam/sched_setparam04.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
testcases/kernel/ipc/semaphore/sem02.c +1 -1
@@ -41,7 +41,6 @@* -ported to LTP * */ -#include "test.h" #include <stdio.h> #include <stdlib.h>
@@ -52,6 +51,7 @@#include <sys/types.h> #include <sys/ipc.h> #include "lapi/semun.h" +#include "test.h" #define KEY IPC_PRIVATE
testcases/kernel/syscalls/sched_setparam/sched_setparam04.c +1 -2
@@ -73,11 +73,10 @@* *********************************************************************/ -#include "test.h" -#include <errno.h> #include <sched.h> #include <pwd.h> +#include "test.h" static void cleanup (void );static void setup (void );
Signature · 1 line
1.8.3.1
PATCH 1/1 syscalls/*: Fix order of included headers
Quoted 2 lines · Xiao Yang
Compilation failed on RHEL5.11GA and RHEL6.8GA because definition of
clone()function insched.hwill be replaced by thetest.hdefined clone(...) macro.
This one applied as well. Thanks.
Best regards,
Alexey