<div>Hey all,</div><br><div>I've been playing around with writing code that is trivially portable between Linux and NetBSD. I realized that 'setprogname(...)' is only available in BSD's &lt;stdlib.h&gt;, and so on Linux, I needed to include &lt;bsd/stdlib.h&gt; in my code iff on a Linux system. Additionally, I had to set compiler flags dependent on OS in my makefile (on Linux, needed the flag -lbsd).</div><br><div>Now, it seems that NetBSD's Make does not play well with the GNU way of creating makefiles (i.e. conditional blocks in the makefile), however 'gmake' on NetBSD works fine. Should we forget about portability? Can we ask you to use gmake to grade? or is there a better way of doing this?</div><br><div>Thanks,</div><br><div><signature id="local-d4f4314a-a661"><table cellpadding="0" cellspacing="0"><tbody><tr><td style="vertical-align:top"><img alt="" src="https://user-generated.getmailspring.com/asset/NmY5Mjg2ODgtZWMyNy00YjMzLWFmNGItYTlmMDQ1OTAxNzZlL3NpZy1pbml0aWFsLnBuZw.png?t=1565960265401&amp;msw=246&amp;msh=249" width="59" height="60" style="max-width:60px;max-height:60px;margin-right:10px"></td><td><div>Elliot Wasem</div><div style="font-size:0.9em;border-top:1px solid gray;min-width:250px;max-width:300px;margin-top:4px;padding-top:4px"><div><div></div><div><a href="https://link.getmailspring.com/link/26398D1A-D106-4482-92B6-EC41B55D3ABF@getmailspring.com/0?redirect=https%3A%2F%2Felliot-wasem.github.io%2Fpersonal-website&amp;recipient=Y3M2MzFhcHVlQGxpc3RzLnN0ZXZlbnMuZWR1">https://elliot-wasem.github.io/personal-website</a></div><div><a href="https://link.getmailspring.com/link/26398D1A-D106-4482-92B6-EC41B55D3ABF@getmailspring.com/1?redirect=https%3A%2F%2Fwww.linkedin.com%2Fin%2Felliot-wasem%2F&amp;recipient=Y3M2MzFhcHVlQGxpc3RzLnN0ZXZlbnMuZWR1" title="LinkedIn" style="margin-right:8px"><img src="https://www.getmailspring.com/signature-assets/linkedin.gif" width="13" height="13" alt="LinkedIn"></a></div></div></div></td></tr></tbody></table></signature></div><img class="mailspring-open" alt="Sent from Mailspring" width="0" height="0" style="border:0; width:0; height:0;" src="https://link.getmailspring.com/open/26398D1A-D106-4482-92B6-EC41B55D3ABF@getmailspring.com?me=354e93c1&amp;recipient=Y3M2MzFhcHVlQGxpc3RzLnN0ZXZlbnMuZWR1">