summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2017-10-11 11:41:57 -0700
committerDan Albert <danalbert@google.com>2017-10-11 13:40:13 -0700
commit7860f052c85ace91255a75b163084719990a30b7 (patch)
treee7b6526facd6a2d72138da063f7e44eff826e8b0
parent909fab223557fb3a5467c926d1f0cd53c9d052d9 (diff)
downloadextras-7860f052c85ace91255a75b163084719990a30b7.tar.gz
Add missing includes.
Test: mma Bug: None Merged-In: I0b22dd6c4150adaceb840f5624973b13eec12f42 Change-Id: I0b22dd6c4150adaceb840f5624973b13eec12f42
-rw-r--r--alloc-stress/mem-pressure.cpp7
-rw-r--r--runconuid/runconuid.cpp4
2 files changed, 8 insertions, 3 deletions
diff --git a/alloc-stress/mem-pressure.cpp b/alloc-stress/mem-pressure.cpp
index 777015d3..82b2273c 100644
--- a/alloc-stress/mem-pressure.cpp
+++ b/alloc-stress/mem-pressure.cpp
@@ -1,9 +1,12 @@
+#include <errno.h>
+#include <fcntl.h>
+#include <getopt.h>
#include <stdio.h>
#include <stdlib.h>
-#include <fcntl.h>
+#include <string.h>
#include <sys/mman.h>
#include <sys/wait.h>
-#include <getopt.h>
+#include <unistd.h>
void *alloc_set(size_t size) {
void *addr = NULL;
diff --git a/runconuid/runconuid.cpp b/runconuid/runconuid.cpp
index 496d51f1..230c58df 100644
--- a/runconuid/runconuid.cpp
+++ b/runconuid/runconuid.cpp
@@ -28,12 +28,14 @@ with the specified group membership.
)";
#include <assert.h>
+#include <errno.h>
#include <grp.h>
#include <pwd.h>
#include <selinux/selinux.h>
+#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
-#include <signal.h>
+#include <string.h>
#include <sys/ptrace.h>
#include <sys/types.h>
#include <sys/wait.h>