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 | 2893c5f1ad64b705c02f53d7953d9a71e8c74ddf (patch) | |
tree | 7cb4ab8a4f046473c16ad996c22fc74427eea5b1 /gdb/proc-api.c | |
parent | 85028074dcde9148425ce1264334b0197f215bdf (diff) | |
download | gdb-2893c5f1ad64b705c02f53d7953d9a71e8c74ddf.tar.gz |
* proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
<sys/proc.h> when not available.
Diffstat (limited to 'gdb/proc-api.c')
-rw-r--r-- | gdb/proc-api.c | 2 |
1 files changed, 2 insertions, 0 deletions
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 |