summaryrefslogtreecommitdiff
path: root/src/helper/replacements.h
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-01-01 16:06:46 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-01-01 16:06:46 +0000
commitab87627c5c4154a3e30108f7e4dd07f5d95c4390 (patch)
treed6b48456554d83ff384ab95eea98b934d70a0a86 /src/helper/replacements.h
parentf4d82deb36b857c6d60d9f31b60d58665a8d6216 (diff)
downloadopenocd+libswd-ab87627c5c4154a3e30108f7e4dd07f5d95c4390.tar.gz
openocd+libswd-ab87627c5c4154a3e30108f7e4dd07f5d95c4390.tar.bz2
openocd+libswd-ab87627c5c4154a3e30108f7e4dd07f5d95c4390.tar.xz
openocd+libswd-ab87627c5c4154a3e30108f7e4dd07f5d95c4390.zip
- add gdb pipe support to native win32 (--pipe option)
git-svn-id: svn://svn.berlios.de/openocd/trunk@1294 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/replacements.h')
-rw-r--r--src/helper/replacements.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/helper/replacements.h b/src/helper/replacements.h
index b6165085..c3a2bf77 100644
--- a/src/helper/replacements.h
+++ b/src/helper/replacements.h
@@ -180,6 +180,9 @@ static __inline void outb(unsigned char value, unsigned short int port)
}
#endif /* IS_MINGW */
+
+int win_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv);
+
#endif /* _WIN32 */
/* generic socket functions for Windows and Posix */
@@ -221,6 +224,15 @@ static __inline void socket_nonblock(int fd)
#endif
}
+static __inline int socket_select(int max_fd, fd_set *rfds, fd_set *wfds, fd_set *efds, struct timeval *tv)
+{
+#ifdef _WIN32
+ return win_select(max_fd, rfds, wfds, efds, tv);
+#else
+ return select(max_fd, rfds, wfds, efds, tv);
+#endif
+}
+
#ifndef HAVE_ELF_H
typedef struct