diff options
| author | Pino Toscano <[email protected]> | 2015-06-26 20:36:01 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2015-06-27 14:56:12 +0200 |
| commit | 65251494ae6eae66bfdf9134189fd11b1ee8e9b5 (patch) | |
| tree | fb82fd40028bc0216e429aba592f918791edff0b /tests/backtrace.c | |
| parent | faf0d3d73dd8e97218e09d631e1305e5ff1c89e2 (diff) | |
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 <[email protected]>
Diffstat (limited to 'tests/backtrace.c')
| -rw-r--r-- | tests/backtrace.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 <error.h> #include <unistd.h> #include <dwarf.h> +#ifdef __linux__ #include <sys/resource.h> #include <sys/ptrace.h> #include <signal.h> @@ -37,6 +38,7 @@ #include <string.h> #include <argp.h> #include ELFUTILS_HEADER(dwfl) +#endif #ifndef __linux__ |
