summaryrefslogtreecommitdiffstats
path: root/libdwfl/linux-pid-attach.c
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2017-04-20 15:37:04 +0200
committerMark Wielaard <[email protected]>2017-04-26 00:10:52 +0200
commit9c1509abe9f3934746b04eff8d91f6f9d181f41d (patch)
tree668ed5b830860d4c077f332514f22326993af15d /libdwfl/linux-pid-attach.c
parent5dd27ffbb374b90741fb854de3e02708ffda643f (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 '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)
{