This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: autoconf error with /dev/ptmx




> -----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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]