summaryrefslogtreecommitdiffstats
path: root/libdwfl/linux-pid-attach.c
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-02-24 16:58:20 +0100
committerUlf Hermann <[email protected]>2017-04-21 15:00:21 +0000
commit4bd80c4d123bdef4d06f0e116e59e24e45a51aff (patch)
treea0f7b6f9adfb6ac5f7d1dfa73fae76b387251219 /libdwfl/linux-pid-attach.c
parentf07a88011802b7def6224dbfc0fa8c58bf2d9cdf (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 'libdwfl/linux-pid-attach.c')
-rw-r--r--libdwfl/linux-pid-attach.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libdwfl/linux-pid-attach.c b/libdwfl/linux-pid-attach.c
index adfc7f81..398df96d 100644
--- a/libdwfl/linux-pid-attach.c
+++ b/libdwfl/linux-pid-attach.c
@@ -31,14 +31,15 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-#include <sys/ptrace.h>
#include <sys/wait.h>
#include <dirent.h>
-#include <sys/syscall.h>
#include <unistd.h>
#ifdef __linux__
+#include <sys/ptrace.h>
+#include <sys/syscall.h>
+
static bool
linux_proc_pid_is_stopped (pid_t pid)
{