Skip to contentSkip to conversation

syscalls/sched_getparam03.c: Fix order of included headers

PATCH New Xiao Yang 2 participants 2 messages Jul 27, 2016 – Jul 28, 2016

lore
Share & tools
lore

Xiao Yang

author
#0 lore raw

PATCH 1/1 syscalls/sched_getparam03.c: 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.

---
 testcases/kernel/syscalls/sched_getparam/sched_getparam03.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
testcases/kernel/syscalls/sched_getparam/sched_getparam03.c +1 -2
index dec6e41..ceec4c3 100644
@@ -70,10 +70,9 @@
  *
  *********************************************************************/
 
-#include "test.h"
-
 #include <errno.h>
 #include <sched.h>
+#include "test.h"
 
 #define LARGE_PID 999999
 
Signature · 1 line
1.8.3.1
#1 lore raw

PATCH 1/1 syscalls/sched_getparam03.c: Fix order of included headers

Hi,

Quoted 2 lines · Xiao Yang

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.

Patch applied, thank you.

Best regards,
Alexey