delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/27/09:36:22

X-Spam-Check-By: sourceware.org
Date: Fri, 27 Apr 2007 09:35:58 -0400
From: Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: 1.5.24,XP: time.h + mrtd switch in gcc conflicting types
Message-ID: <20070427133558.GA26036@ednor.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <op DOT trf1zpx63j2v8a AT scm-pc-633 DOT tees DOT ac DOT uk>
MIME-Version: 1.0
In-Reply-To: <op.trf1zpx63j2v8a@scm-pc-633.tees.ac.uk>
User-Agent: Mutt/1.5.14 (2007-02-12)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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 Fri, Apr 27, 2007 at 02:20:03PM +0100, Angel Robert Lynas wrote:
>Hi all.  There seems to be an issue with "time.h" under some
>circumstances with a new Cygwin version.  Using a simple test program (
>called t.c):
>
>#include <time.h>
>main() {}
>
>The problem arises when compilation is attempted with the -mrtd switch,
>the following errors arising:
>
>            ------------------------------------
>In file included from t.c:1:
>/usr/include/time.h:150: error: conflicting types for 'clock_getres'
>/usr/include/cygwin/time.h:20: error: previous declaration of
>'clock_getres' was here
>/usr/include/time.h:150: error: conflicting types for 'clock_getres'
>/usr/include/cygwin/time.h:20: error: previous declaration of
>'clock_getres' was here
>/usr/include/time.h:171: error: conflicting types for 'nanosleep'
>/usr/include/cygwin/time.h:18: error: previous declaration of 'nanosleep'
>was here
>/usr/include/time.h:171: error: conflicting types for 'nanosleep'
>/usr/include/cygwin/time.h:18: error: previous declaration of 'nanosleep'
>was here
>            ------------------------------------

I've added __cdecl's to the function declarations in
include/cygwin/time.h.  The change is in CVS and will be in the next
release but that is not likely to be for some time.  So, you may want to
make the change to the header files on your system by hand.

cgf

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