summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2016-01-13 22:49:02 +0100
committerMark Wielaard <mjw@redhat.com>2016-01-18 15:24:27 +0100
commitd460773dd4fdeb98d9271f741e0a54f05ced876d (patch)
tree8b97b650a61155ef18b43d26ac8d2ea98eb3228c
parent2d703bf188cf434255854d8e3c077f2fac55d623 (diff)
downloadelfutils-d460773dd4fdeb98d9271f741e0a54f05ced876d.tar.gz
elfutils-d460773dd4fdeb98d9271f741e0a54f05ced876d.tar.xz
tests: Guard linux specific header includes with ifdef __linux__.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
-rw-r--r--tests/ChangeLog4
-rw-r--r--tests/dwfl-proc-attach.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/ChangeLog b/tests/ChangeLog
index 234ae56..34104ff 100644
--- a/tests/ChangeLog
+++ b/tests/ChangeLog
@@ -1,5 +1,9 @@
2016-01-13 Mark Wielaard <mjw@redhat.com>
+ * dwfl-proc-attach.c: Guard linux specific header.
+
+2016-01-13 Mark Wielaard <mjw@redhat.com>
+
* system-elf-libelf-test.c: New test.
* Makefile.am (TESTS): Add system-elf-libelf-test, if !STANDALONE.
(check_PROGRAMS): Likewise.
diff --git a/tests/dwfl-proc-attach.c b/tests/dwfl-proc-attach.c
index 0ba0be2..e7bb201 100644
--- a/tests/dwfl-proc-attach.c
+++ b/tests/dwfl-proc-attach.c
@@ -22,6 +22,7 @@
#include <errno.h>
#include <error.h>
#include <unistd.h>
+#ifdef __linux__
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/user.h>
@@ -29,6 +30,7 @@
#include <string.h>
#include ELFUTILS_HEADER(dwfl)
#include <pthread.h>
+#endif
#ifndef __linux__
int