diff --git a/compiler-rt/lib/profile/InstrProfilingPort.h b/compiler-rt/lib/profile/InstrProfilingPort.h index 9e3fb8389aa2..94c2e13b46ec 100644 --- a/compiler-rt/lib/profile/InstrProfilingPort.h +++ b/compiler-rt/lib/profile/InstrProfilingPort.h @@ -27,7 +27,7 @@ #define COMPILER_RT_MAX_HOSTLEN 128 #ifdef _MSC_VER #define COMPILER_RT_GETHOSTNAME(Name, Len) gethostname(Name, Len) -#elif defined(__PS4__) +#elif defined(__ORBIS__) #define COMPILER_RT_GETHOSTNAME(Name, Len) (-1) #else #define COMPILER_RT_GETHOSTNAME(Name, Len) lprofGetHostName(Name, Len) diff --git a/compiler-rt/lib/profile/InstrProfilingUtil.h b/compiler-rt/lib/profile/InstrProfilingUtil.h index 813b7dc7bb00..aa40e1c2f06e 100644 --- a/compiler-rt/lib/profile/InstrProfilingUtil.h +++ b/compiler-rt/lib/profile/InstrProfilingUtil.h @@ -16,9 +16,9 @@ void __llvm_profile_recursive_mkdir(char *Pathname); /* PS4 doesn't have getenv. Define a shim. */ -#if __PS4__ +#if __ORBIS__ static inline char *getenv(const char *name) { return NULL; } -#endif /* #if __PS4__ */ +#endif /* #if __ORBIS__ */ int lprofGetHostName(char *Name, int Len);