summaryrefslogtreecommitdiff
path: root/alloc-stress
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:39:24 -0700
commit495b3be99d706a1391ff70bc2c6d531e0d0dee94 (patch)
treea3f24872e8f424f049603b8db7acf97953eb84d4 /alloc-stress
parente541de8c5ec6a64093cef3b6281f26d61969a3f3 (diff)
downloadextras-495b3be99d706a1391ff70bc2c6d531e0d0dee94.tar.gz
Add missing includes.
Test: mma Bug: None Change-Id: I0b22dd6c4150adaceb840f5624973b13eec12f42
Diffstat (limited to 'alloc-stress')
-rw-r--r--alloc-stress/mem-pressure.cpp7
1 files changed, 5 insertions, 2 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;