mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Try to fix OSF1 (TRU64).
This commit is contained in:
parent
1e2c571106
commit
97fe42fbbd
@ -374,7 +374,7 @@ env_setProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
|
||||
return JS_FALSE;
|
||||
name = JS_GetStringBytes(idstr);
|
||||
value = JS_GetStringBytes(valstr);
|
||||
#if defined XP_WIN || defined HPUX
|
||||
#if defined XP_WIN || defined HPUX || defined OSF1
|
||||
{
|
||||
char *waste = JS_smprintf("%s=%s", name, value);
|
||||
if (!waste) {
|
||||
@ -382,8 +382,14 @@ env_setProperty(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
|
||||
return JS_FALSE;
|
||||
}
|
||||
rv = putenv(waste);
|
||||
#ifndef HPUX
|
||||
/* XXX hpux9 at least still has the bad old non-copying putenv */
|
||||
#if !defined HPUX && !defined OSF1
|
||||
/*
|
||||
* HPUX9 at least still has the bad old non-copying putenv.
|
||||
*
|
||||
* Per mail from <s.shanmuganathan@digital.com>, OSF1 also has a putenv
|
||||
* that will crash if you pass it an auto char array (so it must place
|
||||
* its argument directly in the char *environ[] array).
|
||||
*/
|
||||
free(waste);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user