aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Douglas Dawson <dougnd@gmail.com>2016-07-13 16:38:40 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2016-07-14 11:12:28 +0000
commit5ca52f7771eb36c1bf135655f7d665179eb7b4db (patch)
treebc5a9736aa98eae7f3df6e87bd4dbc9707d82d3c /src
parent93899fea88d454619be419f589a8420990ca77b7 (diff)
Added include requirements for errno, printf, getenv
Closes #1419. -- Reviewed-on: https://github.com/bazelbuild/bazel/pull/1419 MOS_MIGRATED_REVID=127326203
Diffstat (limited to 'src')
-rw-r--r--src/main/cpp/blaze_util_linux.cc2
-rw-r--r--src/main/cpp/blaze_util_posix.cc2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/main/cpp/blaze_util_linux.cc b/src/main/cpp/blaze_util_linux.cc
index 06850375f6..aea194350d 100644
--- a/src/main/cpp/blaze_util_linux.cc
+++ b/src/main/cpp/blaze_util_linux.cc
@@ -16,6 +16,8 @@
#include <limits.h>
#include <pwd.h>
#include <signal.h>
+#include <stdio.h>
+#include <stdlib.h>
#include <string.h> // strerror
#include <sys/socket.h>
#include <sys/statfs.h>
diff --git a/src/main/cpp/blaze_util_posix.cc b/src/main/cpp/blaze_util_posix.cc
index 625b29105f..bc06712152 100644
--- a/src/main/cpp/blaze_util_posix.cc
+++ b/src/main/cpp/blaze_util_posix.cc
@@ -12,9 +12,11 @@
// See the License for the specific language governing permissions and
// limitations under the License.
+#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <signal.h>
+#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>