> 2009-03-17 Joel Brobecker > > Add gdb_usleep as a portable version of sleep based on gdb_select. > > * gdb_usleep.h, gdb_usleep.c: New files. > * Makefile.in (SFILES): Add gdb_usleep.c. > (HFILES_NO_SRCDIR): Add gdb_usleep.h. > (COMMON_OBS): Add gdb_usleep.o. > * ser-unix.c (hardwire_send_break): Replace call to gdb_select > by call to gdb_usleep. There were no objections, so here is what I ended up checking in. There is one thing worth mentioning apart from the addition of the missing #include of "gdb_usleep.h" from gdb_usleep.c that was caught by Jan: I needed to add a #include of to get access to struct timeval. I think it was on Tru64, IIRC. The thing is, we normally conditionalize the inclusion of system files like these using #ifdef HAVE_SYS_TIME_H, but so far, we don't for . See event-loop.c for instance. So I simply included it without checking its availability. -- Joel