summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
{