From: Douglas Yung Date: Thu, 14 May 2020 02:11:16 +0000 (+0000) Subject: Fix PS4 build of compiler-rt runtime. X-Git-Tag: llvmorg-12-init~6116 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79af7314fbde836854315ef7213076653076f20c;p=platform%2Fupstream%2Fllvm.git Fix PS4 build of compiler-rt runtime. In a previous change I added a shim for fork(), but when compiled from InstrProfiling.c, the required header file was not included, so pid_t was undefined. This change adds that include. --- diff --git a/compiler-rt/lib/profile/InstrProfilingUtil.h b/compiler-rt/lib/profile/InstrProfilingUtil.h index 428dae0..5f5c850 100644 --- a/compiler-rt/lib/profile/InstrProfilingUtil.h +++ b/compiler-rt/lib/profile/InstrProfilingUtil.h @@ -32,6 +32,7 @@ int lprofUnlockFileHandle(FILE *F); FILE *lprofOpenFileEx(const char *Filename); /* PS4 doesn't have setenv/getenv/fork. Define a shim. */ #if __ORBIS__ +#include static inline char *getenv(const char *name) { return NULL; } static inline int setenv(const char *name, const char *value, int overwrite) { return 0; }