bfd/
[deliverable/binutils-gdb.git] / gdb / inflow.c
index cc4b5dea4356afb5f8f7484d5f4aa4e6dad07dd7..6a775316c84b8a7a69e5b5f504ea823241c41f59 100644 (file)
@@ -150,7 +150,9 @@ gdb_has_a_terminal (void)
          if (our_ttystate != NULL)
            {
              gdb_has_a_terminal_flag = yes;
+#ifdef PROCESS_GROUP_TYPE
              our_process_group = gdb_getpgrp ();
+#endif
            }
        }
 
@@ -350,11 +352,13 @@ terminal_ours_1 (int output_only)
        xfree (inferior_ttystate);
       inferior_ttystate = serial_get_tty_state (stdin_serial);
 
+#ifdef PROCESS_GROUP_TYPE
       if (!attach_flag)
        /* If setpgrp failed in terminal_inferior, this would give us
           our process group instead of the inferior's.  See
           terminal_inferior for details.  */
        inferior_process_group = gdb_getpgrp ();
+#endif
 
       /* Here we used to set ICANON in our ttystate, but I believe this
          was an artifact from before when we used readline.  Readline sets
This page took 0.024479 seconds and 4 git commands to generate.