about summary refs log tree commit diff
diff options
context:
space:
mode:
authorXiaoyi Zhang <zhangxy988@gmail.com>2018-07-13T18·13-0400
committerGitHub <noreply@github.com>2018-07-13T18·13-0400
commita5030ca5125b9d557ecfeea8acc8b1a8e49f6d27 (patch)
treedf6195ac9c2f5ab7cf0d63d01d42e3e9e0d40bab
parent02687955b7ca8fc02ada9b14bc247deeb108d341 (diff)
parent37d45c0164671963051320598ee8421b87506283 (diff)
Merge pull request #144 from rongjiecomputer/winsock2
Only MSVC does not have sys/time.h
-rw-r--r--absl/time/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/absl/time/time.h b/absl/time/time.h
index ceec2de7cd29..880fc783ae4a 100644
--- a/absl/time/time.h
+++ b/absl/time/time.h
@@ -50,7 +50,7 @@
 #ifndef ABSL_TIME_TIME_H_
 #define ABSL_TIME_TIME_H_
 
-#if !defined(_WIN32)
+#if !defined(_MSC_VER)
 #include <sys/time.h>
 #else
 #include <winsock2.h>