diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9e1e67db7a..fd42635f3e 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-01-20 Joel Brobecker + + * nat/linux-ptrace.c: Only include if + HAVE_SYS_PROCFS_H is defined. + 2017-01-18 Alan Hayward * 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 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 +#endif /* Stores the ptrace options supported by the running kernel. A value of -1 means we did not check for features yet. A value