aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/cpp/util
diff options
context:
space:
mode:
authorGravatar Mostyn Bramley-Moore <mostynb@opera.com>2015-11-10 11:27:39 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2015-11-11 13:05:11 +0000
commit44e8d10b7e923540c8ee837b76eea85d29338b22 (patch)
tree4ef2c65a70885660860acbbdb1b70075c829c52b /src/main/cpp/util
parent4b20984d684459ec5b484ffd00dddb6ef8784e24 (diff)
add some missing errno.h and string.h includes
-- Reviewed-on: https://github.com/bazelbuild/bazel/pull/571 MOS_MIGRATED_REVID=107471259
Diffstat (limited to 'src/main/cpp/util')
-rw-r--r--src/main/cpp/util/file.cc1
-rw-r--r--src/main/cpp/util/numbers.cc4
2 files changed, 2 insertions, 3 deletions
diff --git a/src/main/cpp/util/file.cc b/src/main/cpp/util/file.cc
index 3ada5a5e49..d6b62a085f 100644
--- a/src/main/cpp/util/file.cc
+++ b/src/main/cpp/util/file.cc
@@ -13,7 +13,6 @@
// limitations under the License.
#include "src/main/cpp/util/file.h"
-#include <errno.h> // EINVAL
#include <limits.h> // PATH_MAX
#include <sys/stat.h>
#include <unistd.h> // access
diff --git a/src/main/cpp/util/numbers.cc b/src/main/cpp/util/numbers.cc
index 6ad7c1d107..2e3b1095e8 100644
--- a/src/main/cpp/util/numbers.cc
+++ b/src/main/cpp/util/numbers.cc
@@ -13,9 +13,9 @@
// limitations under the License.
#include "src/main/cpp/util/numbers.h"
-#include <stdint.h>
-#include <errno.h>
+#include <errno.h> // errno, ERANGE
#include <limits.h>
+#include <stdint.h>
#include <cassert>
#include <cstdlib>
#include <limits>