diff options
Diffstat (limited to 'gdb/ser-base.c')
-rw-r--r-- | gdb/ser-base.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/ser-base.c b/gdb/ser-base.c index a43f08b..8b449cd 100644 --- a/gdb/ser-base.c +++ b/gdb/ser-base.c @@ -1,7 +1,7 @@ /* Generic serial interface functions. Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, - 2003, 2004, 2005 Free Software Foundation, Inc. + 2003, 2004, 2005, 2006 Free Software Foundation, Inc. This file is part of GDB. @@ -25,6 +25,7 @@ #include "ser-base.h" #include "event-loop.h" +#include "gdb_select.h" #include "gdb_string.h" #include <sys/time.h> #ifdef USE_WIN32API @@ -202,9 +203,9 @@ ser_base_wait_for (struct serial *scb, int timeout) FD_SET (scb->fd, &exceptfds); if (timeout >= 0) - numfds = select (scb->fd + 1, &readfds, 0, &exceptfds, &tv); + numfds = gdb_select (scb->fd + 1, &readfds, 0, &exceptfds, &tv); else - numfds = select (scb->fd + 1, &readfds, 0, &exceptfds, 0); + numfds = gdb_select (scb->fd + 1, &readfds, 0, &exceptfds, 0); if (numfds <= 0) { |