From 6bf03d4a3f2badac3d353d376501574204688c0f 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 366aea9..3900d1b 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-08 Mark Wielaard * elfputzdata.c (main): Fix parentheses in strncmp test. 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.5.0