From edfca66467b93c737f632f7233a01bf281b684e9 Mon Sep 17 00:00:00 2001
From: oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Date: Mon, 27 Oct 2008 07:32:09 +0000
Subject: [PATCH] now compiles under Cygwin and eCos again.

git-svn-id: svn://svn.berlios.de/openocd/trunk@1102 b42882b7-edfa-0310-969c-e2dbd0fdcd60
---
 src/helper/replacements.h | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/helper/replacements.h b/src/helper/replacements.h
index 553cde1be..069519d1a 100644
--- a/src/helper/replacements.h
+++ b/src/helper/replacements.h
@@ -83,10 +83,15 @@ struct timeval {
 
 /* gettimeofday() */
 #ifndef HAVE_GETTIMEOFDAY
+
+
+#ifdef _WIN32
 struct timezone {
     int tz_minuteswest;
 	int tz_dsttime;
 };
+#endif
+struct timezone;
 
 extern int gettimeofday(struct timeval *tv, struct timezone *tz);
 #endif
-- 
GitLab