[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
This commit is contained in:
Jon Roelofs 2020-07-20 16:56:49 -06:00
parent 19dbb230a2
commit b9fc20ebe7
1 changed files with 1 additions and 0 deletions

View File

@ -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()