aboutsummaryrefslogtreecommitdiff
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
commit8dd72958e0906ce5971b1493239c7d682fe20822 (patch)
tree9ed64cd3d891ae7742bee66800848fe941baf953 /gdb/proc-api.c
parenta99a9e1bc43b7dd85d928d5654b45f1b789f9ec0 (diff)
downloadgdb-8dd72958e0906ce5971b1493239c7d682fe20822.zip
gdb-8dd72958e0906ce5971b1493239c7d682fe20822.tar.gz
gdb-8dd72958e0906ce5971b1493239c7d682fe20822.tar.bz2
* 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 2d3ca9f..fa6667f 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