delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/07/20/10:23:17

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
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" <Andrej DOT Borsenkow AT mow DOT siemens DOT ru>
To: <jjarvie AT newsguy DOT com>, <cygwin AT cygwin DOT com>
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
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019