diff options
author | 2016-09-29 14:08:38 +0000 | |
---|---|---|
committer | 2016-09-30 08:11:49 +0000 | |
commit | f6a24d1c79e932b19c51dbe637b2dfe1773e90b0 (patch) | |
tree | 5ed5019c8e1153037a52247197266063dce45466 | |
parent | b4ad154f86445a512b282b2f889729f815906a83 (diff) |
Windows: make the port library compile with MSVC
--
MOS_MIGRATED_REVID=134657410
-rw-r--r-- | src/main/cpp/util/port.cc | 3 | ||||
-rw-r--r-- | src/main/cpp/util/port.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/cpp/util/port.cc b/src/main/cpp/util/port.cc index fcf780d3ad..e04fab1fe5 100644 --- a/src/main/cpp/util/port.cc +++ b/src/main/cpp/util/port.cc @@ -16,9 +16,8 @@ #ifdef __linux #include <sys/syscall.h> -#endif // __linux - #include <unistd.h> +#endif // __linux namespace blaze_util { diff --git a/src/main/cpp/util/port.h b/src/main/cpp/util/port.h index 7b7227178c..bb704065fb 100644 --- a/src/main/cpp/util/port.h +++ b/src/main/cpp/util/port.h @@ -14,7 +14,8 @@ #ifndef BAZEL_SRC_MAIN_CPP_UTIL_PORT_H_ #define BAZEL_SRC_MAIN_CPP_UTIL_PORT_H_ -#include <stddef.h> // For size_t +#include <stddef.h> // For size_t on Linux, Darwin +#include <stdint.h> // For size_t on Windows // GCC-specific features #if (defined(COMPILER_GCC3) || defined(__APPLE__)) && !defined(SWIG) |