delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/08/27/03:56:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Date: Wed, 27 Aug 2003 09:56:04 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: newlib: conflicting types for `_fstat64_r'
Message-ID: <20030827075604.GA16572@cygbert.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <2969774981 DOT 20030827080146 AT familiehaase DOT de>
Mime-Version: 1.0
In-Reply-To: <2969774981.20030827080146@familiehaase.de>
User-Agent: Mutt/1.4.1i

On Wed, Aug 27, 2003 at 08:01:46AM +0200, Gerrit P. Haase wrote:
> Hello,
> 
> I'm gettting this error when compiling newlib with fresh updated CVS
> source :
> /winsup/src/newlib/libc/reent/fstat64r.c:61: error: conflicting types for `_fstat64_r'
> /winsup/src/newlib/libc/include/reent.h:89: error: previous declaration of `_fstat64_r'
> 
> Anyone seen this before?

Very unlikely since it's a result of a newlib change of yesterday.
Try this fix:

Index: newlib/libc/include/reent.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/include/reent.h,v
retrieving revision 1.4
diff -u -p -r1.4 reent.h
--- newlib/libc/include/reent.h	3 Oct 2002 19:33:08 -0000	1.4
+++ newlib/libc/include/reent.h	27 Aug 2003 07:53:46 -0000
@@ -83,6 +83,9 @@ extern _ssize_t _write_r _PARAMS ((struc
 extern int _gettimeofday_r _PARAMS ((struct _reent *, struct timeval *tp, struct timezone *tzp));
 
 #ifdef __LARGE64_FILES
+#if defined (__CYGWIN__) && defined (_COMPILING_NEWLIB)
+#define stat64 __stat64
+#endif
 struct stat64;
 
 extern _off64_t _lseek64_r _PARAMS ((struct _reent *, int, _off64_t, int));


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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