summaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-02-14 16:57:29 +0000
committerAndrew Cagney <cagney@redhat.com>2001-02-14 16:57:29 +0000
commitf82ed5d6a50e95cfb9761829b63b65bcede5d2d1 (patch)
tree3e1c5ffa60bf5ca5b6951d9acd0fe4211703600d /gdb/inflow.c
parentfc8761e985821064df9cf08f9796974a11939157 (diff)
downloadgdb-f82ed5d6a50e95cfb9761829b63b65bcede5d2d1.tar.gz
* inflow.c (terminal_ours_1): Initialize ``osigtou''. Only
declare when have SIGTTOU.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c
index 4f751e8bed9..2517f97e9cc 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -317,9 +317,11 @@ terminal_ours_1 (int output_only)
if (!terminal_is_ours)
{
+#ifdef SIGTTOU
/* Ignore this signal since it will happen when we try to set the
pgrp. */
- void (*osigttou) ();
+ void (*osigttou) () = NULL;
+#endif
int result;
terminal_is_ours = 1;