Add environment variables missing from webOS 3 - 5
This commit is contained in:
parent
42704b9311
commit
0e4136537b
|
@ -5928,6 +5928,11 @@ int rarch_main(int argc, char *argv[], void *data)
|
|||
#endif
|
||||
|
||||
#if defined(WEBOS)
|
||||
// compatibility with webOS 3 - 5
|
||||
if(getenv("XDG_RUNTIME_DIR") == NULL) {
|
||||
setenv("XDG_RUNTIME_DIR", "/tmp/xdg", 0);
|
||||
}
|
||||
|
||||
struct rlimit limit = {0, 0};
|
||||
setrlimit(RLIMIT_CORE, &limit);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue