diff options
| author | Ulf Hermann <[email protected]> | 2017-04-20 15:37:04 +0200 |
|---|---|---|
| committer | Mark Wielaard <[email protected]> | 2017-04-26 00:10:52 +0200 |
| commit | 9c1509abe9f3934746b04eff8d91f6f9d181f41d (patch) | |
| tree | 668ed5b830860d4c077f332514f22326993af15d /tests/backtrace-child.c | |
| parent | 5dd27ffbb374b90741fb854de3e02708ffda643f (diff) | |
Clean up linux-specific system includes
We only include them where we actually need them and only on linux.
Signed-off-by: Ulf Hermann <[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)) |
