[compiler-rt] 5a2a179 - [profile][Fuchsia] Add missing system header #include

Roland McGrath via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 6 17:59:51 PDT 2021


Author: Roland McGrath
Date: 2021-08-06T17:59:35-07:00
New Revision: 5a2a179695832dd8cc332108e2e29aa039f59b90

URL: https://github.com/llvm/llvm-project/commit/5a2a179695832dd8cc332108e2e29aa039f59b90
DIFF: https://github.com/llvm/llvm-project/commit/5a2a179695832dd8cc332108e2e29aa039f59b90.diff

LOG: [profile][Fuchsia] Add missing system header #include

The _zx_vmar_root_self function is not a system call but
a libc function declared in a separate header.

Reviewed By: gulfem

Differential Revision: https://reviews.llvm.org/D107616

Added: 
    

Modified: 
    compiler-rt/lib/profile/InstrProfilingUtil.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/lib/profile/InstrProfilingUtil.c b/compiler-rt/lib/profile/InstrProfilingUtil.c
index 4fa792b72eac..062727faf7e7 100644
--- a/compiler-rt/lib/profile/InstrProfilingUtil.c
+++ b/compiler-rt/lib/profile/InstrProfilingUtil.c
@@ -34,6 +34,7 @@
 #endif
 
 #if defined(__Fuchsia__)
+#include <zircon/process.h>
 #include <zircon/syscalls.h>
 #endif
 


        


More information about the llvm-commits mailing list