summaryrefslogtreecommitdiff
path: root/gdb/nat/linux-ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/nat/linux-ptrace.c')
-rw-r--r--gdb/nat/linux-ptrace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c
index 3447e0716c..3265b16074 100644
--- a/gdb/nat/linux-ptrace.c
+++ b/gdb/nat/linux-ptrace.c
@@ -23,7 +23,9 @@
#include "buffer.h"
#include "gdb_wait.h"
#include "gdb_ptrace.h"
+#ifdef HAVE_SYS_PROCFS_H
#include <sys/procfs.h>
+#endif
/* Stores the ptrace options supported by the running kernel.
A value of -1 means we did not check for features yet. A value