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-data.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-data.c')
-rw-r--r-- | tests/backtrace-data.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/backtrace-data.c b/tests/backtrace-data.c index 5a93a9cc..bc5ceba0 100644 --- a/tests/backtrace-data.c +++ b/tests/backtrace-data.c @@ -30,6 +30,7 @@ #include <error.h> #include <unistd.h> #include <dwarf.h> +#if defined(__x86_64__) && defined(__linux__) #include <sys/resource.h> #include <sys/ptrace.h> #include <signal.h> @@ -39,6 +40,7 @@ #include <fcntl.h> #include <string.h> #include ELFUTILS_HEADER(dwfl) +#endif #if !defined(__x86_64__) || !defined(__linux__) |