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 00:54:04 +0400
committerJeff Johnston <jjohnstn@redhat.com>2003-08-27 00:54:04 +0400
commit54c1d7ea18016920bfdcf90514e097ab6b8bc466 (patch)
tree10cda044701c27dab449d2eaf3bd3ac2fc4fd29f /newlib
parent0eca075074ec5463cf9b5a0ebe52073886cb5b89 (diff)
2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as __stat64 when compiling newlib.
Diffstat (limited to 'newlib')
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/stat.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index b089e12d6..336696b79 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
+ * libc/include/sys/stat.h[__CYGWIN__]: Only define stat64 as
+ __stat64 when compiling newlib.
+
+2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
+
* libc/include/stdio.h: Allow the io64 function prototypes for
Cygwin when compiling newlib.
* libc/include/sys/stat.h[__CYGWIN__]: Define stat64 as __stat64
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
index 0bd951ac2..de590315b 100644
--- a/newlib/libc/include/sys/stat.h
+++ b/newlib/libc/include/sys/stat.h
@@ -24,7 +24,9 @@ extern "C" {
#ifdef __CYGWIN__
#include <cygwin/stat.h>
+#ifdef _COMPILING_NEWLIB
#define stat64 __stat64
+#endif
#else
struct stat
{