mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 600639 followup: unbreak non-threadsafe shell builds, r=cjones
This commit is contained in:
parent
72c8eed930
commit
d93f709073
@ -79,7 +79,6 @@
|
||||
#include "jsxml.h"
|
||||
#include "jsperf.h"
|
||||
|
||||
#include "prenv.h"
|
||||
#include "prmjtime.h"
|
||||
|
||||
#ifdef JSDEBUGGER
|
||||
@ -861,12 +860,14 @@ ProcessArgs(JSContext *cx, JSObject *obj, char **argv, int argc)
|
||||
StartTraceVis(argv[i]);
|
||||
break;
|
||||
#endif
|
||||
#ifdef JS_THREADSAFE
|
||||
case 'g':
|
||||
if (++i == argc)
|
||||
return usage();
|
||||
|
||||
PR_Sleep(PR_SecondsToInterval(atoi(argv[i])));
|
||||
break;
|
||||
#endif
|
||||
|
||||
default:
|
||||
return usage();
|
||||
@ -5336,7 +5337,7 @@ MaybeOverrideOutFileFromEnv(const char* const envVar,
|
||||
FILE* defaultOut,
|
||||
FILE** outFile)
|
||||
{
|
||||
const char* outPath = PR_GetEnv(envVar);
|
||||
const char* outPath = getenv(envVar);
|
||||
if (!outPath || !*outPath || !(*outFile = fopen(outPath, "w"))) {
|
||||
*outFile = defaultOut;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user