Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com X-Envelope-Sender-Is: Andrej DOT Borsenkow AT mow DOT siemens DOT ru (at relayer goliath.siemens.de) From: "Andrej Borsenkow" To: , Subject: RE: autoconf error with /dev/ptmx Date: Fri, 20 Jul 2001 18:21:43 +0400 Message-ID: <002101c11127$4d228830$21c9ca95@mow.siemens.ru> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <200107201358.GAA14347@newsguy.com> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 > -----Original Message----- > From: cygwin-owner AT sources DOT redhat DOT com > [mailto:cygwin-owner AT sources DOT redhat DOT com]On Behalf Of jjarvie AT newsguy DOT com > Sent: Friday, July 20, 2001 5:59 PM > To: cygwin AT cygwin DOT 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/