All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [COMMITTED] [PATCH 2/2] endian_switch01: Fix build on older distros.
Date: Wed, 17 Jan 2018 15:56:41 +0100	[thread overview]
Message-ID: <20180117145641.21103-2-chrubis@suse.cz> (raw)
In-Reply-To: <20180117145641.21103-1-chrubis@suse.cz>

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 <chrubis@suse.cz>
---
 testcases/kernel/syscalls/switch/endian_switch01.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/testcases/kernel/syscalls/switch/endian_switch01.c b/testcases/kernel/syscalls/switch/endian_switch01.c
index 3e5ff47fc..777280afb 100644
--- a/testcases/kernel/syscalls/switch/endian_switch01.c
+++ b/testcases/kernel/syscalls/switch/endian_switch01.c
@@ -27,6 +27,8 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <elf.h>
+#include <sys/types.h>
+#include <sys/wait.h>
 #include "tst_test.h"
 
 #if defined (__powerpc64__) || (__powerpc__)
-- 
2.13.6


      reply	other threads:[~2018-01-17 14:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-17 14:56 [LTP] [COMMITTED] [PATCH 1/2] fcntl36: Do not pass char* pointer to tst_res() fmt Cyril Hrubis
2018-01-17 14:56 ` Cyril Hrubis [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180117145641.21103-2-chrubis@suse.cz \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.