<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 9, 2013 at 12:42 AM,  <span dir="ltr">&lt;<a href="mailto:cog@googlecode.com" target="_blank">cog@googlecode.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Comment #2 on issue 132 by <a href="mailto:riverdu...@gmail.com" target="_blank">riverdu...@gmail.com</a>: Build Fails on OpenBSD. ucontext is not available<br>
<a href="http://code.google.com/p/cog/issues/detail?id=132" target="_blank">http://code.google.com/p/cog/<u></u>issues/detail?id=132</a><br>
<br>
Hi<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hang on.  I don&#39;t think that&#39;s the problem.  I *think* someone found out how to install a ucontext.h for FreeBSD.   Is that the case?<br>
</blockquote>
<br></div>
That isn&#39;t the point.<br>
Firstly we&#39;re talking OPENBSD, not FREEBSD which is vastly different.<br>
Secondly, its not about &quot;can i get this to work with my favorite distro&quot;.<br>
ucontext is a long deprecated library that makes use of long deprecated c functions. Using it goes against best practices.<br>
If it weren&#39;t for certain applications/distros, ucontext would be dead a long time ago.<br>
The idea is to replace the deprecated library with something that doesn&#39;t use deprecated c functions and is more portable.</blockquote><div><br></div><div>I&#39;m happy to make the change.  But I could do with some help.  BTW, I&#39;m not using any functions here.  Only the u_context accessing via the siginfo parameter passed into a signal handler as in</div>
<div> </div><div><div>void    (*__sa_sigaction)(int, struct __siginfo *, void *);</div></div><div><br></div><div>So if you know how to get the register state from that on OpenBSD I&#39;d like to know.  Otherwise condescend to someone else, ok?</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(meant to post this yesterday; the draft has sat there, but it&#39;s still a valid question)<br>
</blockquote>
<br></div>
Best<br>
Dusty<div class="HOEnZb"><div class="h5"><br>
<br>
-- <br>
You received this message because this project is configured to send all issue notifications to this address.<br>
You may adjust your notification preferences at:<br>
<a href="https://code.google.com/hosting/settings" target="_blank">https://code.google.com/<u></u>hosting/settings</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>best,<div>Eliot</div>
</div></div>