diff options
-rw-r--r-- | src/main/cpp/blaze_startup_options.cc | 1 | ||||
-rw-r--r-- | src/main/cpp/blaze_util_freebsd.cc | 5 | ||||
-rw-r--r-- | src/main/cpp/blaze_util_linux.cc | 1 | ||||
-rw-r--r-- | src/main/cpp/blaze_util_mingw.cc | 4 | ||||
-rw-r--r-- | src/main/cpp/util/file.cc | 1 | ||||
-rw-r--r-- | src/main/cpp/util/numbers.cc | 4 | ||||
-rw-r--r-- | src/test/cpp/blaze_util_test.cc | 1 |
7 files changed, 10 insertions, 7 deletions
diff --git a/src/main/cpp/blaze_startup_options.cc b/src/main/cpp/blaze_startup_options.cc index 7e0a158b43..efceba37dd 100644 --- a/src/main/cpp/blaze_startup_options.cc +++ b/src/main/cpp/blaze_startup_options.cc @@ -16,6 +16,7 @@ #include <assert.h> #include <errno.h> // errno, ENOENT #include <stdlib.h> // getenv, exit +#include <string.h> // strerror #include <unistd.h> // access #include <cstdio> diff --git a/src/main/cpp/blaze_util_freebsd.cc b/src/main/cpp/blaze_util_freebsd.cc index ca58355f7b..2317795bbd 100644 --- a/src/main/cpp/blaze_util_freebsd.cc +++ b/src/main/cpp/blaze_util_freebsd.cc @@ -12,8 +12,11 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include <errno.h> // errno, ENAMETOOLONG +#include <libprocstat.h> #include <limits.h> #include <pwd.h> +#include <signal.h> #include <string.h> // strerror #include <sys/mount.h> #include <sys/param.h> @@ -23,8 +26,6 @@ #include <sys/types.h> #include <sys/un.h> #include <unistd.h> -#include <signal.h> -#include <libprocstat.h> #include "src/main/cpp/blaze_util.h" #include "src/main/cpp/blaze_util_platform.h" diff --git a/src/main/cpp/blaze_util_linux.cc b/src/main/cpp/blaze_util_linux.cc index 867fbb2da0..1f1144c426 100644 --- a/src/main/cpp/blaze_util_linux.cc +++ b/src/main/cpp/blaze_util_linux.cc @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include <errno.h> // errno, ENAMETOOLONG #include <limits.h> #include <pwd.h> #include <string.h> // strerror diff --git a/src/main/cpp/blaze_util_mingw.cc b/src/main/cpp/blaze_util_mingw.cc index 3719e0de35..3cf33946cb 100644 --- a/src/main/cpp/blaze_util_mingw.cc +++ b/src/main/cpp/blaze_util_mingw.cc @@ -12,12 +12,12 @@ // See the License for the specific language governing permissions and // limitations under the License. -#include <errno.h> +#include <errno.h> // errno, ENAMETOOLONG #include <limits.h> #include <string.h> // strerror +#include <sys/cygwin.h> #include <sys/socket.h> #include <sys/statfs.h> -#include <sys/cygwin.h> #include <unistd.h> #include <windows.h> 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> diff --git a/src/test/cpp/blaze_util_test.cc b/src/test/cpp/blaze_util_test.cc index 301b2d0816..02fec70aa8 100644 --- a/src/test/cpp/blaze_util_test.cc +++ b/src/test/cpp/blaze_util_test.cc @@ -12,6 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. +#include <errno.h> #include <fcntl.h> #include <stddef.h> #include <stdlib.h> |