From d460773dd4fdeb98d9271f741e0a54f05ced876d Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Wed, 13 Jan 2016 22:49:02 +0100 Subject: [PATCH] tests: Guard linux specific header includes with ifdef __linux__. Signed-off-by: Mark Wielaard --- tests/ChangeLog | 4 ++++ tests/dwfl-proc-attach.c | 2 ++ 2 files changed, 6 insertions(+) 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 + * dwfl-proc-attach.c: Guard linux specific header. + +2016-01-13 Mark Wielaard + * 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 #include #include +#ifdef __linux__ #include #include #include @@ -29,6 +30,7 @@ #include #include ELFUTILS_HEADER(dwfl) #include +#endif #ifndef __linux__ int -- 2.7.4