- 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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user