From 8dd72958e0906ce5971b1493239c7d682fe20822 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Tue, 16 Jul 2002 17:14:38 +0000 Subject: [PATCH] * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including when not available. --- gdb/ChangeLog | 5 +++++ gdb/proc-api.c | 2 ++ 2 files changed, 7 insertions(+) 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 + + * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including + when not available. + 2002-07-16 Andrew Cagney * 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 #include #include +#ifdef HAVE_SYS_PROC_H #include /* for struct proc */ +#endif #ifdef HAVE_SYS_USER_H #include /* for struct user */ #endif -- 2.30.2