forked from OSchip/llvm-project
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.
This commit is contained in:
parent
a255870f03
commit
79af7314fb
|
@ -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 <sys/types.h>
|
||||
static inline char *getenv(const char *name) { return NULL; }
|
||||
static inline int setenv(const char *name, const char *value, int overwrite)
|
||||
{ return 0; }
|
||||
|
|
Loading…
Reference in New Issue