[compiler-rt] b9fc20e - [compiler-rt][test][profile] Fix missing include
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 21 10:59:53 PDT 2020
Author: Jon Roelofs
Date: 2020-07-21T11:59:27-06:00
New Revision: b9fc20ebe7cda07dbc7b1d9b0dbdef3d9627094f
URL: https://github.com/llvm/llvm-project/commit/b9fc20ebe7cda07dbc7b1d9b0dbdef3d9627094f
DIFF: https://github.com/llvm/llvm-project/commit/b9fc20ebe7cda07dbc7b1d9b0dbdef3d9627094f.diff
LOG: [compiler-rt][test][profile] Fix missing include
... on systems where wait() isn't one of the declarations transitively included
via unistd.h (i.e. Darwin).
Differential Revision: https://reviews.llvm.org/D84207
Added:
Modified:
compiler-rt/test/profile/Posix/gcov-fork.c
Removed:
################################################################################
diff --git a/compiler-rt/test/profile/Posix/gcov-fork.c b/compiler-rt/test/profile/Posix/gcov-fork.c
index 022ce716a8dc..b89eb64922f0 100644
--- a/compiler-rt/test/profile/Posix/gcov-fork.c
+++ b/compiler-rt/test/profile/Posix/gcov-fork.c
@@ -8,6 +8,7 @@
// RUN: rm -f gcov-fork.gcda && %run %t
// RUN: llvm-cov gcov -t gcov-fork.gcda | FileCheck %s
+#include <sys/wait.h>
#include <unistd.h>
void func1() {} // CHECK: 1: [[#@LINE]]:void func1()
More information about the llvm-commits
mailing list