summaryrefslogtreecommitdiff
path: root/gdb/posix-hdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/posix-hdep.c')
-rw-r--r--gdb/posix-hdep.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/posix-hdep.c b/gdb/posix-hdep.c
index ca405f985f5..3ad6f922e82 100644
--- a/gdb/posix-hdep.c
+++ b/gdb/posix-hdep.c
@@ -24,6 +24,8 @@
#include "gdb_string.h"
+#include "gdb_select.h"
+
/* The strerror() function can return NULL for errno values that are
out of range. Provide a "safe" version that always returns a
printable string. */
@@ -43,3 +45,11 @@ safe_strerror (int errnum)
return (msg);
}
+/* Wrapper for select. Nothing special needed on POSIX platforms. */
+
+int
+gdb_select (int n, fd_set *readfds, fd_set *writefds, fd_set *exceptfds,
+ struct timeval *timeout)
+{
+ return select (n, readfds, writefds, exceptfds, timeout);
+}