On 23 August 2010 03:40, Anthony J. Bentley <anthonyjbentley_AT_gmail.com> wrote:
> I am interested in using st on OpenBSD, but it does not compile since
> OpenBSD does not implement posix_openpt et al:
>
> st.c: In function 'ttynew':
> st.c:243: warning: implicit declaration of function 'posix_openpt'
> st.c:245: warning: implicit declaration of function 'grantpt'
> st.c:247: warning: implicit declaration of function 'unlockpt'
> st.c:249: warning: implicit declaration of function 'ptsname'
> st.c:249: warning: assignment makes pointer from integer without a cast
> st.c:253: error: 'O_NDELAY' undeclared (first use in this function)
> st.c:253: error: (Each undeclared identifier is reported only once
> st.c:253: error: for each function it appears in.)
> *** Error code 1
>
> It looks like there was once effort to make it work[1] but I don’t
> guess it’s still in… any advice?
To make it work, you'll need to rip off the BSD-style tty handling
from xterm or some other implementation, since there is no pts style
available on at least OpenBSD and most likely NetBSD, dunno about
FreeBSD these days.
Cheers,
Anselm
Received on Mon Aug 23 2010 - 09:12:57 CEST
This archive was generated by hypermail 2.2.0 : Mon Aug 23 2010 - 09:24:02 CEST