delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/01/24/12:59:38

X-Spam-Check-By: sourceware.org
Date: Tue, 24 Jan 2006 18:59:22 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Errors compiling cdrtools under cygwin 1.5.19
Message-ID: <20060124175922.GK8318@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <43D6680D DOT 8010309 AT caltanet DOT it>
Mime-Version: 1.0
In-Reply-To: <43D6680D.8010309@caltanet.it>
User-Agent: Mutt/1.4.2i
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Jan 24 18:46, Simone Crestani wrote:
> Hi,
> I found out that cygwin 1.5.19 gives some problems when I try to compile 
> cdrtools and cdrdao.
> [...]
>    Try to convince cygwin to remove their non-conforming interface
>    definition.
> 
>    The getline() iterface I use goes back to 1982 and has been used in
>    a commercial
>    UNIX clone for a long time.

His fault.  He shouldn't declare a function unconditionally, but use the
system headers if there's a definition available.

As for the correctness, the getline definition in Cygwin's
/usr/include/sys/stdio.h file is *exactly* the definition used on Linux:

  ssize_t getline(char **, size_t *, FILE *);


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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