summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/stat.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/sys/stat.h')
-rw-r--r--newlib/libc/include/sys/stat.h2
1 files changed, 2 insertions, 0 deletions
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
{