now compiles under Cygwin and eCos again.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1102 b42882b7-edfa-0310-969c-e2dbd0fdcd60
__archive__
oharboe 2008-10-27 07:32:09 +00:00
parent 88c940c4b8
commit edfca66467
1 changed files with 5 additions and 0 deletions

View File

@ -83,10 +83,15 @@ struct timeval {
/* gettimeofday() */ /* gettimeofday() */
#ifndef HAVE_GETTIMEOFDAY #ifndef HAVE_GETTIMEOFDAY
#ifdef _WIN32
struct timezone { struct timezone {
int tz_minuteswest; int tz_minuteswest;
int tz_dsttime; int tz_dsttime;
}; };
#endif
struct timezone;
extern int gettimeofday(struct timeval *tv, struct timezone *tz); extern int gettimeofday(struct timeval *tv, struct timezone *tz);
#endif #endif