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:
Douglas Yung 2020-05-14 02:11:16 +00:00
parent a255870f03
commit 79af7314fb
1 changed files with 1 additions and 0 deletions

View File

@ -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; }