From: Mark Wielaard Date: Wed, 13 Jan 2016 21:49:02 +0000 (+0100) Subject: tests: Guard linux specific header includes with ifdef __linux__. X-Git-Tag: elfutils-0.166~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d460773dd4fdeb98d9271f741e0a54f05ced876d;p=thirdparty%2Felfutils.git tests: Guard linux specific header includes with ifdef __linux__. Signed-off-by: Mark Wielaard --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 234ae5623..34104ffe1 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +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. diff --git a/tests/dwfl-proc-attach.c b/tests/dwfl-proc-attach.c index 0ba0be24d..e7bb2010e 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