commit | c9102bfc9611445a8b11c7a3dcdd1c950c6e1809 | [log] [tgz] |
---|---|---|
author | Joshua Seaton <joshuaseaton@google.com> | Sat Jun 16 03:45:08 2018 -0700 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Sat Jun 16 11:02:00 2018 +0000 |
tree | 6deeec79072bf3507c46cd96df10711215922ac4 | |
parent | f177f3e05a0f49d88bf1b48eb5dd486d7ed13e8f [diff] |
[runtests] Fix macOS breakage. stdlib.h and unistd.h were deleted in a recent change when they shouldn't have been. mkdtemp is included from stdlib.h and on macOS requires unistd.h Change-Id: I696f5a1a13758ed993217e07163b7aa3d919a7ae
diff --git a/system/utest/runtests-utils/posix-test-main.cpp b/system/utest/runtests-utils/posix-test-main.cpp index 6d21c7a..6f43475 100644 --- a/system/utest/runtests-utils/posix-test-main.cpp +++ b/system/utest/runtests-utils/posix-test-main.cpp
@@ -8,6 +8,8 @@ #include "runtests-utils-test-globals.h" #include <stdio.h> +#include <stdlib.h> +#include <unistd.h> #include <fbl/auto_call.h> #include <runtests-utils/posix-run-test.h>