This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 	    }
 	}
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]