diff options
author | Joel Brobecker <brobecker@gnat.com> | 2002-07-16 17:14:38 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2002-07-16 17:14:38 +0000 |
commit | 8dd72958e0906ce5971b1493239c7d682fe20822 (patch) | |
tree | 9ed64cd3d891ae7742bee66800848fe941baf953 | |
parent | a99a9e1bc43b7dd85d928d5654b45f1b789f9ec0 (diff) | |
download | binutils-8dd72958e0906ce5971b1493239c7d682fe20822.tar.gz binutils-8dd72958e0906ce5971b1493239c7d682fe20822.tar.bz2 binutils-8dd72958e0906ce5971b1493239c7d682fe20822.zip |
* proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
<sys/proc.h> when not available.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/proc-api.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e4fd18fa6b7..c72a0707298 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-07-16 Joel Brobecker <brobecker@gnat.com> + + * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including + <sys/proc.h> when not available. + 2002-07-16 Andrew Cagney <ac131313@redhat.com> * NEWS: Mention that the i[34]86-*-os9k has been made obsolete. diff --git a/gdb/proc-api.c b/gdb/proc-api.c index 2d3ca9ffbf2..fa6667f1a83 100644 --- a/gdb/proc-api.c +++ b/gdb/proc-api.c @@ -36,7 +36,9 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <stdio.h> #include <sys/types.h> #include <sys/procfs.h> +#ifdef HAVE_SYS_PROC_H #include <sys/proc.h> /* for struct proc */ +#endif #ifdef HAVE_SYS_USER_H #include <sys/user.h> /* for struct user */ #endif |