--On Sunday, May 23, 2010 10:39 PM +0200 Julien Cristau <[email protected]> wrote:

sys/ioctl.h should be enough, and it sounds like TIOCNOTTY *is* defined
in your build.  A quick test on the kfreebsd-amd64 porter box shows that
TIOCNOTTY expands as:
((unsigned long) ((0x20000000) | (((0) & 0x1fff) << 16) | ((('t')) << 8)
| ((113))))

from <sys/ioccom.h>:
# define _IOC(inout,group,num,len)       ((unsigned long) \
        ((inout) | (((len) & IOCPARM_MASK) << 16) | ((group) << 8) |
(num)))
# define _IO(g,n)        _IOC(IOC_VOID,  (g), (n), 0)

Testing for defined(TIOCNOTTY) instead would probably fix it, I think?

Noted in the upstream ITS:

<http://www.openldap.org/its/index.cgi/?findid=6534>

--Quanah

--

Quanah Gibson-Mount
Principal Software Engineer
Zimbra, Inc
--------------------
Zimbra ::  the leader in open source messaging and collaboration



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to