diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-01 00:09:12 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-04-01 00:09:12 +0200 |
commit | b9a8bca64d7a9ae1f950a953ac2985bf7dcc4eff (patch) | |
tree | a35a1b14c2a272dfb571727bc3fa10835f747e02 /js/xpconnect | |
parent | 5d409fdca92e085dad2f9c80b42f33afe4f10800 (diff) | |
download | UXP-b9a8bca64d7a9ae1f950a953ac2985bf7dcc4eff.tar UXP-b9a8bca64d7a9ae1f950a953ac2985bf7dcc4eff.tar.gz UXP-b9a8bca64d7a9ae1f950a953ac2985bf7dcc4eff.tar.lz UXP-b9a8bca64d7a9ae1f950a953ac2985bf7dcc4eff.tar.xz UXP-b9a8bca64d7a9ae1f950a953ac2985bf7dcc4eff.zip |
Remove some HPUX leftovers.
Resolves #185
Diffstat (limited to 'js/xpconnect')
-rw-r--r-- | js/xpconnect/src/XPCShellImpl.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/js/xpconnect/src/XPCShellImpl.cpp b/js/xpconnect/src/XPCShellImpl.cpp index a44c143ea..4ddc8deb3 100644 --- a/js/xpconnect/src/XPCShellImpl.cpp +++ b/js/xpconnect/src/XPCShellImpl.cpp @@ -662,7 +662,7 @@ env_setProperty(JSContext* cx, HandleObject obj, HandleId id, MutableHandleValue JSAutoByteString value(cx, valstr); if (!value) return false; -#if defined XP_WIN || defined HPUX || defined OSF1 || defined SCO +#if defined XP_WIN || defined SCO { char* waste = JS_smprintf("%s=%s", name.ptr(), value.ptr()); if (!waste) { @@ -670,16 +670,7 @@ env_setProperty(JSContext* cx, HandleObject obj, HandleId id, MutableHandleValue return false; } rv = putenv(waste); -#ifdef XP_WIN - /* - * 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 } #else rv = setenv(name.ptr(), value.ptr(), 1); |