aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/nat/linux-ptrace.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9e1e67d..fd42635 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-01-20 Joel Brobecker <brobecker@adacore.com>
+
+ * nat/linux-ptrace.c: Only include <sys/procfs.h> if
+ HAVE_SYS_PROCFS_H is defined.
+
2017-01-18 Alan Hayward <alan.hayward@arm.com>
* remote.c (struct cached_reg): Change data into a pointer.
diff --git a/gdb/nat/linux-ptrace.c b/gdb/nat/linux-ptrace.c
index 3447e07..3265b16 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