Browse Source

fixing cross-compile builds, relates #170

Stasik0 9 years ago
parent
commit
d1c3a39342
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/ua_types.c

+ 2 - 0
src/ua_types.c

@@ -267,11 +267,13 @@ UA_TYPE_AS(UA_DateTime, UA_Int64)
 #define HUNDRED_NANOSEC_PER_SEC (HUNDRED_NANOSEC_PER_USEC * 1000000LL)
 
 #ifdef __MINGW32__
+#ifndef timezone
 struct timezone {
   int tz_minuteswest;
   int tz_dsttime;
 };
 #endif
+#endif
 #ifdef _WIN32
 static const unsigned __int64 epoch = 116444736000000000;
 int gettimeofday(struct timeval *tp, struct timezone *tzp);