<div dir="ltr">The way I handled this was to create a define called HAVE_STUB_GETENV (which is a really weird name in hindsight) in my config.h file. I then just set that define, along with HAVE_INTEL_ATOMIC_PRIMITIVES, when building for PS4.<div><br></div><div>I'm not sure if you'd want to take that into HarfBuzz proper, or whether you'd want a better way?</div><div><br></div><div><div><font face="monospace, monospace">#ifdef HAVE_STUB_GETENV</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">        </span>// Stub out getenv as not all platforms support it</font></div><div><font face="monospace, monospace"><span class="" style="white-space:pre">  </span>#define getenv(name) 0</font></div><div><font face="monospace, monospace">#endif // HAVE_STUB_GETENV</font></div></div><div><br></div><div>-Jamie.</div></div><div id="DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><table style="border-top:1px solid #aaabb6;margin-top:10px">
        <tr>
                <td style="width:105px;padding-top:15px">
                        <a href="https://www.avast.com/lp-safe-emailing?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank"><img src="https://ipmcdn.avast.com/images/logo-avast-v1.png" style="width: 90px; height:33px;"></a>
                </td>
                <td style="width:470px;padding-top:20px;color:#41424e;font-size:13px;font-family:Arial,Helvetica,sans-serif;line-height:18px">This email has been sent from a virus-free computer protected by Avast. <br><a href="https://www.avast.com/lp-safe-emailing?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail" target="_blank" style="color:#4453ea">www.avast.com</a>
                </td>
        </tr>
</table><a href="#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2" width="1" height="1"></a></div><div class="gmail_extra"><br><div class="gmail_quote">On 15 December 2015 at 11:40, Behdad Esfahbod <span dir="ltr"><<a href="mailto:behdad.esfahbod@gmail.com" target="_blank">behdad.esfahbod@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 15-12-13 09:33 PM, Jamie Dale wrote:<br>
> You'll need a define to stub out getenv for a PS4 build<br>
<br>
</span>I'll take a patch to hb-private.hh to do that.<br>
</blockquote></div><br></div>