ithewei пре 6 година
родитељ
комит
7edd748420
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      base/htime.h

+ 2 - 0
base/htime.h

@@ -36,6 +36,7 @@ static inline void usleep(unsigned int us) {
 
 #include <sys/timeb.h>
 
+#ifdef _MSC_VER
 /* @see winsock2.h
 // Structure used in select() call, taken from the BSD file sys/time.h
 struct timeval {
@@ -48,6 +49,7 @@ struct timezone {
     int tz_minuteswest; /* of Greenwich */
     int tz_dsttime;     /* type of dst correction to apply */
 };
+#endif
 
 static inline int gettimeofday(struct timeval *tv, struct timezone *tz) {
     struct _timeb tb;