aboutsummaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-02-07 04:21:34 +0000
committerAndrew Cagney <cagney@redhat.com>2003-02-07 04:21:34 +0000
commit44270758cd8e51b26d4bf8c58f2d69f27225a71f (patch)
treeec8ce247b0b33ef5a05eae8c68cb6661591810b9 /gdb/inflow.c
parentdf8f727469e674603bd9438adf5fcf070227aa94 (diff)
downloadgdb-44270758cd8e51b26d4bf8c58f2d69f27225a71f.zip
gdb-44270758cd8e51b26d4bf8c58f2d69f27225a71f.tar.gz
gdb-44270758cd8e51b26d4bf8c58f2d69f27225a71f.tar.bz2
2003-02-06 Andrew Cagney <ac131313@redhat.com>
* Makefile.in (inflow_h): Define. (procfs.o, inflow.o, procfs.o): Update dependencies. * inftarg.c (child_stop): Delete extern declaration of inferior_process_group. Include "inflow.h". * procfs.c (procfs_stop): Ditto. Include "inflow.h". * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ... * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file. (our_process_group, inferior_process_group): Extern declarations.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c
index c8df106..2a41f57 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -35,22 +35,7 @@
#include <sys/select.h>
#endif
-#ifdef HAVE_TERMIOS
-#define PROCESS_GROUP_TYPE pid_t
-#endif
-
-#ifdef HAVE_TERMIO
-#define PROCESS_GROUP_TYPE int
-#endif
-
-#ifdef HAVE_SGTTY
-#ifdef SHORT_PGRP
-/* This is only used for the ultra. Does it have pid_t? */
-#define PROCESS_GROUP_TYPE short
-#else
-#define PROCESS_GROUP_TYPE int
-#endif
-#endif /* sgtty */
+#include "inflow.h"
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>