Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-08-27 20:24:57 +0400
committerJeff Johnston <jjohnstn@redhat.com>2003-08-27 20:24:57 +0400
commit880fa2477d524bb84059de50633920407ebaebd8 (patch)
treebbd46fe9f9fe65af2d3a064619576979db44332e /newlib
parent78bcc6ada487ff5a8a26907719c3fc1f5931e65c (diff)
2003-08-27 Corinna Vinschen <corinna@vinschen.de>
* libc/include/reent.h: Define stat64 as __stat64 when compiling newlib for Cygwin.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/reent.h5
2 files changed, 10 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 336696b79..bed5f41dc 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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
diff --git a/newlib/libc/include/reent.h b/newlib/libc/include/reent.h
index 52cc8cd94..00c2eb4b6 100644
--- a/newlib/libc/include/reent.h
+++ b/newlib/libc/include/reent.h
@@ -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));