Skip to content

Commit

Permalink
Fix PS4 build of compiler-rt runtime.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dyung committed May 14, 2020
1 parent a255870 commit 79af731
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler-rt/lib/profile/InstrProfilingUtil.h
Expand Up @@ -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; }
Expand Down

0 comments on commit 79af731

Please sign in to comment.