OSDN Git Service

2003-08-27 Corinna Vinschen <corinna@vinschen.de>
authorjjohnstn <jjohnstn>
Wed, 27 Aug 2003 16:24:56 +0000 (16:24 +0000)
committerjjohnstn <jjohnstn>
Wed, 27 Aug 2003 16:24:56 +0000 (16:24 +0000)
        * libc/include/reent.h: Define stat64 as __stat64 when
        compiling newlib for Cygwin.

newlib/ChangeLog
newlib/libc/include/reent.h

index 336696b..bed5f41 100644 (file)
@@ -1,3 +1,8 @@
+2003-08-27  Corinna Vinschen  <corinna@vinschen.de>
+
+       * libc/include/reent.h: Define stat64 as __stat64 when
+       compiling newlib for Cygwin.
+
 2003-08-26  Jeff Johnston  <jjohnstn@redhat.com>
 
        * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
index 52cc8cd..00c2eb4 100644 (file)
@@ -83,6 +83,11 @@ extern _ssize_t _write_r _PARAMS ((struct _reent *, int, const void *, size_t));
 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));