<div dir="ltr">Hello, everybody.  I just dug through the archives looking to see if there might have been any workaround to this, but I haven&#39;t seen anything.  The mosh website says that there is an OpenBSD pre-compiled package available for mosh, but I guess that must&#39;ve been a few versions ago, as I haven&#39;t seen anything in the 5.x repositories as far as mosh, nor in the ports directories.<div>

<br></div><div>So anyway, I took it upon myself to compile things from scratch.  Everything went well up until ::pselect() was undeclared.  Here&#39;s the exact compiler error:</div><div><br></div><div><div>contract:/usr/src/mosh-1.2.4$ make</div>

<div>make  all-recursive</div><div>Making all in src</div><div>Making all in protobufs</div><div>make  all-am</div><div>Making all in util</div><div>  CXX    select.o</div><div>In file included from select.cc:33:</div><div>

select.h: In member function &#39;int Select::select(int)&#39;:</div><div>select.h:139: error: &#39;::pselect&#39; has not been declared</div><div>*** Error 1 in src/util (Makefile:288 &#39;select.o&#39;: @echo &quot;  CXX   &quot; select.o;g++ -DHAVE_CONFIG_H -I. -I../..     -Wall  -fno-strict-overflow ...)</div>

<div>*** Error 1 in src (Makefile:296 &#39;all-recursive&#39;)</div><div>*** Error 1 in . (Makefile:337 &#39;all-recursive&#39;)</div><div>*** Error 1 in /usr/src/mosh-1.2.4 (Makefile:255 &#39;all&#39;)</div></div><div><br>

</div><div>Anyway, I&#39;ve found a couple of potential workarounds.  First, there is one found at <a href="http://openbsd.7691.n7.nabble.com/PATCH-net-mosh-and-pselect-td227394.html">http://openbsd.7691.n7.nabble.com/PATCH-net-mosh-and-pselect-td227394.html</a> ; unfortunately, this appears to apply to a version of mosh found in an OpenBSD that has mosh in /usr/ports, which my 5.3 system most certainly does not.</div>

<div><br></div><div>Second, I did find raw source code for a pselect() function, but I&#39;m not really sure if it&#39;s going to be compatible with what this particular application is going to use it for, it&#39;s been awhile since I worked with C/C++.  I found that at <a href="ftp://ftp.fr.openbsd.org/pub/OpenBSD/src/usr.sbin/nsd/compat/pselect.c">ftp://ftp.fr.openbsd.org/pub/OpenBSD/src/usr.sbin/nsd/compat/pselect.c</a> , but it was provided as a pselect() for &#39;nsd&#39;, not for any generic package.</div>

<div><br></div><div>Anyway, any help that you guys could point me to or suggestions you can offer would very much be appreciated.  Mosh rocks and I really want to have it on my only externally-facing system (the BSD one).  Thanks in advance!</div>

<div><br></div><div>-Damon Getsman</div></div>