From 65251494ae6eae66bfdf9134189fd11b1ee8e9b5 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 26 Jun 2015 20:36:01 +0200 Subject: Reduce scope of some includes Use some includes only according to the #ifdef block of the respective code, or matching the fact they are Linux-only. This way, includes potentially unportable are not unconditionally used. Signed-off-by: Pino Toscano --- tests/backtrace.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/backtrace.c') diff --git a/tests/backtrace.c b/tests/backtrace.c index abd56ab6..12476430 100644 --- a/tests/backtrace.c +++ b/tests/backtrace.c @@ -27,6 +27,7 @@ #include #include #include +#ifdef __linux__ #include #include #include @@ -37,6 +38,7 @@ #include #include #include ELFUTILS_HEADER(dwfl) +#endif #ifndef __linux__ -- cgit v1.2.3