* [LTP] [PATCH] syscalls/*: Fix order of included headers
@ 2016-07-27 10:51 Xiao Yang
2016-07-28 14:30 ` Alexey Kodanev
0 siblings, 1 reply; 2+ messages in thread
From: Xiao Yang @ 2016-07-27 10:51 UTC (permalink / raw)
To: ltp
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/ipc/semaphore/sem02.c | 2 +-
testcases/kernel/syscalls/sched_setparam/sched_setparam04.c | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/testcases/kernel/ipc/semaphore/sem02.c b/testcases/kernel/ipc/semaphore/sem02.c
index 7db142b..81e77d6 100644
--- a/testcases/kernel/ipc/semaphore/sem02.c
+++ b/testcases/kernel/ipc/semaphore/sem02.c
@@ -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
diff --git a/testcases/kernel/syscalls/sched_setparam/sched_setparam04.c b/testcases/kernel/syscalls/sched_setparam/sched_setparam04.c
index 3da1120..f6e017d 100644
--- a/testcases/kernel/syscalls/sched_setparam/sched_setparam04.c
+++ b/testcases/kernel/syscalls/sched_setparam/sched_setparam04.c
@@ -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);
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] syscalls/*: Fix order of included headers
2016-07-27 10:51 [LTP] [PATCH] syscalls/*: Fix order of included headers Xiao Yang
@ 2016-07-28 14:30 ` Alexey Kodanev
0 siblings, 0 replies; 2+ messages in thread
From: Alexey Kodanev @ 2016-07-28 14:30 UTC (permalink / raw)
To: ltp
On 07/27/2016 01:51 PM, Xiao Yang wrote:
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-07-28 14:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-27 10:51 [LTP] [PATCH] syscalls/*: Fix order of included headers Xiao Yang
2016-07-28 14:30 ` Alexey Kodanev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox