Skip to contentSkip to conversation

syscalls/*: 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/*: 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/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
index 7db142b..81e77d6 100644
@@ -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
index 3da1120..f6e017d 100644
@@ -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
#1 lore raw

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 in sched.h will be replaced by the test.h defined clone(...) macro.

This one applied as well. Thanks.

Best regards,
Alexey