Skip to content

Commit a2e789c

Browse files
committed
endian_switch01: Fix build on older distros.
Fixes build failures: ... In function `test_le_switch': endian_switch01.c:84: undefined reference to `WIFSIGNALED' endian_switch01.c:88: undefined reference to `WIFEXITED' endian_switch01.c:85: undefined reference to `WTERMSIG' endian_switch01.c:89: undefined reference to `WEXITSTATUS' ... collect2: ld returned 1 exit status Signed-off-by: Cyril Hrubis <[email protected]>
1 parent e0fb3d7 commit a2e789c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

testcases/kernel/syscalls/switch/endian_switch01.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
#include <stdlib.h>
2828
#include <unistd.h>
2929
#include <elf.h>
30+
#include <sys/types.h>
31+
#include <sys/wait.h>
3032
#include "tst_test.h"
3133

3234
#if defined (__powerpc64__) || (__powerpc__)

0 commit comments

Comments
 (0)