This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Fix Windows build
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sourceware dot org
- Date: Mon, 24 Mar 2008 14:10:24 -0400
- Subject: [ob] Fix Windows build
Another fix for last week's getpgrp changes.
--
Daniel Jacobowitz
CodeSourcery
2008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
* inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
--- gdb/inflow.c (revision 197501)
+++ gdb/inflow.c (local)
@@ -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
}
}