- fix rlink build under native win32 (mingw)

- remove rlink build warnings
- add usb_set_configuration to rlink_init, win32 requires this
- add win32 ETIMEDOUT define

git-svn-id: svn://svn.berlios.de/openocd/trunk@1260 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
ntfreak
2008-12-19 13:58:15 +00:00
parent e2c2b2d926
commit 9d1f95e01a
7 changed files with 545 additions and 534 deletions

View File

@@ -84,7 +84,6 @@ struct timeval {
/* gettimeofday() */
#ifndef HAVE_GETTIMEOFDAY
#ifdef _WIN32
struct timezone {
int tz_minuteswest;
@@ -161,6 +160,12 @@ void usleep(int us);
#include <windows.h>
#include <time.h>
/* win32 systems do not support ETIMEDOUT */
#ifndef ETIMEDOUT
#define ETIMEDOUT WSAETIMEDOUT
#endif
#if IS_MINGW == 1
static __inline unsigned char inb(unsigned short int port)
{