aboutsummaryrefslogtreecommitdiff
path: root/gdb/proc-api.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-23 07:49:05 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-23 07:49:05 +0000
commit6e8cb14ae5bbf686d99416c8f9681d10a95e0548 (patch)
tree97c3253a796d675e7ea669f35c582d7c185f9163 /gdb/proc-api.c
parent5a327c7ac240f0d61153acf965fb9ddfbfa1fa27 (diff)
downloadgdb-6e8cb14ae5bbf686d99416c8f9681d10a95e0548.zip
gdb-6e8cb14ae5bbf686d99416c8f9681d10a95e0548.tar.gz
gdb-6e8cb14ae5bbf686d99416c8f9681d10a95e0548.tar.bz2
IRIX GCC fixes from 5.0 branch.
Diffstat (limited to 'gdb/proc-api.c')
-rw-r--r--gdb/proc-api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/proc-api.c b/gdb/proc-api.c
index 771a28e..cf12d42 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 <sys/types.h>
#include <sys/procfs.h>
#include <sys/proc.h> /* for struct proc */
+#ifdef HAVE_SYS_USER_H
#include <sys/user.h> /* for struct user */
+#endif
#include <fcntl.h> /* for O_RDWR etc. */
#include <sys/wait.h>
@@ -118,8 +120,12 @@ static struct trans ioctl_table[] = {
{ PIOCGETPTIMER, "PIOCGETPTIMER", "get process timers" },
#endif /* irix event counters */
{ PIOCGENTRY, "PIOCGENTRY", "get traced syscall entry set" },
+#if defined (PIOCGETPR)
{ PIOCGETPR, "PIOCGETPR", "read struct proc" },
+#endif
+#if defined (PIOCGETU)
{ PIOCGETU, "PIOCGETU", "read user area" },
+#endif
#if defined (PIOCGETUTK) && (defined(KERNEL) || defined(SHOW_UTT)) /* osf */
{ PIOCGETUTK, "PIOCGETUTK", "get the utask struct" },
#endif