diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e4fd18fa6b..c72a070729 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 2d3ca9ffbf..fa6667f1a8 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