summaryrefslogtreecommitdiff
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
commit0afec82943f8d7b8feb85d5a3b503ff264e9a625 (patch)
treec8347418221d8b400341dab77563c33051856d8d /gdb/proc-api.c
parente24ec38081d8908ecad55164bcbdad1bdf9fd0cd (diff)
downloadgdb-0afec82943f8d7b8feb85d5a3b503ff264e9a625.tar.gz
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 771a28e6374..cf12d424d65 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