This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: newlib: conflicting types for `_fstat64_r'


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@cygwin.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]