From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Andrej Borsenkow" To: , Subject: RE: autoconf error with /dev/ptmx Date: Fri, 20 Jul 2001 07:21:00 -0000 Message-id: <002101c11127$4d228830$21c9ca95@mow.siemens.ru> References: <200107201358.GAA14347@newsguy.com> X-SW-Source: 2001-07/msg01165.html > -----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/