diff options
| author | Ulf Hermann <[email protected]> | 2017-02-24 16:58:20 +0100 |
|---|---|---|
| committer | Ulf Hermann <[email protected]> | 2017-04-21 15:00:21 +0000 |
| commit | 4bd80c4d123bdef4d06f0e116e59e24e45a51aff (patch) | |
| tree | a0f7b6f9adfb6ac5f7d1dfa73fae76b387251219 /tests/backtrace-child.c | |
| parent | f07a88011802b7def6224dbfc0fa8c58bf2d9cdf (diff) | |
Clean up linux-specific system includes
We only include them where we actually need them and only on linux.
Change-Id: Ic3065ffab67ba1177f63204fb91a92c5f4336dbb
Reviewed-by: Christian Kandeler <[email protected]>
Diffstat (limited to 'tests/backtrace-child.c')
| -rw-r--r-- | tests/backtrace-child.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/backtrace-child.c b/tests/backtrace-child.c index cf4547ca..2c27414f 100644 --- a/tests/backtrace-child.c +++ b/tests/backtrace-child.c @@ -83,7 +83,6 @@ #include <stdlib.h> #include <signal.h> #include <errno.h> -#include <sys/ptrace.h> #include <string.h> #include <pthread.h> #include <stdio.h> @@ -100,6 +99,7 @@ main (int argc __attribute__ ((unused)), char **argv) } #else /* __linux__ */ +#include <sys/ptrace.h> #if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 5) #define NOINLINE_NOCLONE __attribute__ ((noinline, noclone)) |
