diff options
author | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-12-19 13:58:15 +0000 |
---|---|---|
committer | ntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-12-19 13:58:15 +0000 |
commit | 9d1f95e01a4d273bd0e82a98719a4ea5ff435647 (patch) | |
tree | c860d08155ef6c3b4c6808dccc8d671a1f749758 /src/helper | |
parent | e2c2b2d926e7827e4177d4c760ca76f22ab49241 (diff) | |
download | riscv-openocd-9d1f95e01a4d273bd0e82a98719a4ea5ff435647.zip riscv-openocd-9d1f95e01a4d273bd0e82a98719a4ea5ff435647.tar.gz riscv-openocd-9d1f95e01a4d273bd0e82a98719a4ea5ff435647.tar.bz2 |
- 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
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/replacements.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/helper/replacements.h b/src/helper/replacements.h index a1500d7..b616508 100644 --- a/src/helper/replacements.h +++ b/src/helper/replacements.h @@ -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) { |