summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-08 18:15:55 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-08 18:15:55 +0000
commit53e1f9cd0f4de07258a0675b43db741c6ffd5ca7 (patch)
treec49638c88c7acd8fdc267403b567e17ba5d9f07e
parentdc63c051a8f8d90eba991d2180c43a201db1ea9e (diff)
downloadopenocd_libswd-53e1f9cd0f4de07258a0675b43db741c6ffd5ca7.tar.gz
openocd_libswd-53e1f9cd0f4de07258a0675b43db741c6ffd5ca7.tar.bz2
openocd_libswd-53e1f9cd0f4de07258a0675b43db741c6ffd5ca7.tar.xz
openocd_libswd-53e1f9cd0f4de07258a0675b43db741c6ffd5ca7.zip
- fix build issues under win32 (mingw)
git-svn-id: svn://svn.berlios.de/openocd/trunk@902 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/helper/jim-eventloop.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/helper/jim-eventloop.c b/src/helper/jim-eventloop.c
index 7858842a..73bc29b4 100644
--- a/src/helper/jim-eventloop.c
+++ b/src/helper/jim-eventloop.c
@@ -62,9 +62,11 @@
#include <sys/time.h>
#include <sys/types.h>
#include <unistd.h>
-#include <sys/select.h>
#include <errno.h>
- extern int errno;
+
+#include "replacements.h"
+
+extern int errno;
/* --- */
/* File event structure */
@@ -269,7 +271,7 @@ int Jim_ProcessEvents(Jim_Interp *interp, int flags)
/* Check file events */
while (fe != NULL) {
- int fd = fileno(fe->handle);
+ int fd = fileno((FILE*)fe->handle);
if (fe->mask & JIM_EVENT_READABLE)
FD_SET(fd, &rfds);
@@ -320,7 +322,7 @@ int Jim_ProcessEvents(Jim_Interp *interp, int flags)
} else if (retval > 0) {
fe = eventLoop->fileEventHead;
while(fe != NULL) {
- int fd = fileno(fe->handle);
+ int fd = fileno((FILE*)fe->handle);
// fprintf(stderr,"fd: %d mask: %02x \n",fd,fe->mask);