summaryrefslogtreecommitdiff
path: root/gdb/proc-api.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2002-07-16 17:14:38 +0000
committerJoel Brobecker <brobecker@gnat.com>2002-07-16 17:14:38 +0000
commit2893c5f1ad64b705c02f53d7953d9a71e8c74ddf (patch)
tree7cb4ab8a4f046473c16ad996c22fc74427eea5b1 /gdb/proc-api.c
parent85028074dcde9148425ce1264334b0197f215bdf (diff)
downloadgdb-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.c2
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