This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: autoconf error with /dev/ptmx
- To: <jjarvie at newsguy dot com>, <cygwin at cygwin dot com>
- Subject: RE: autoconf error with /dev/ptmx
- From: "Andrej Borsenkow" <Andrej dot Borsenkow at mow dot siemens dot ru>
- Date: Fri, 20 Jul 2001 18:21:43 +0400
> -----Original Message-----
> From: cygwin-owner@sources.redhat.com
> [mailto:cygwin-owner@sources.redhat.com]On Behalf Of jjarvie@newsguy.com
> Sent: Friday, July 20, 2001 5:59 PM
> To: cygwin@cygwin.com
> Subject: RE: autoconf error with /dev/ptmx
>
>
> Robert, Corinna , Andrej
>
> Thanks for the replies which explain what's going on.
>
> If I leave the PTMX define in the compile fails on
>
> if (ioctl(*ttyfd, I_PUSH, "ptem") < 0)
> sockerror("ioctl I_PUSH ptem");
> if (ioctl(*ttyfd, I_PUSH, "ldterm") < 0)
> sockerror("ioctl I_PUSH ldterm");
> if (ioctl(*ttyfd, I_PUSH, "ttcompat") < 0)
> sockerror("ioctl I_PUSH ttcompat");
>
> I_PUSH is not defined, on Linux this is in
>
> /usr/include/bits/stropts.h
>
What has it to do with Linux? You need enclose it either in #ifndef
__CYGWIN__ or #ifdef I_PUSH.
-andrej
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/