summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-05-13 09:26:17 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-05-13 09:26:17 +0000
commit5d575f7dcd7a436cfb9ec91b6378194f88458efb (patch)
treeb04d0bd83fd73638d14a3dbebf0785959a780124 /winsup/cygwin/include
parent837e070f314f6b8b9e64ec9fb09dd0e0bf6226e9 (diff)
downloadcygnal-5d575f7dcd7a436cfb9ec91b6378194f88458efb.tar.gz
cygnal-5d575f7dcd7a436cfb9ec91b6378194f88458efb.tar.bz2
cygnal-5d575f7dcd7a436cfb9ec91b6378194f88458efb.zip
* include/cygwin/config.h: Define __USE_INTERNAL_STAT64 appropriately.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r--winsup/cygwin/include/cygwin/config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/include/cygwin/config.h b/winsup/cygwin/include/cygwin/config.h
index 4bafa3c18..77815a071 100644
--- a/winsup/cygwin/include/cygwin/config.h
+++ b/winsup/cygwin/include/cygwin/config.h
@@ -23,6 +23,14 @@ extern "C" {
#define _READ_WRITE_RETURN_TYPE _ssize_t
#define __LARGE64_FILES 1
#define __CYGWIN_USE_BIG_TYPES__ 1
+#ifdef __CYGWIN_USE_BIG_TYPES__
+/* __USE_INTERNAL_STAT64 is needed when building newlib for Cygwin.
+ It must be set when __CYGWIN_USE_BIG_TYPES__ is set. In this case
+ newlib will call the 64 bit stat calls internally. Otherwise the
+ struct stat used in newlib is not matching the struct stat used in
+ Cygwin. */
+#define __USE_INTERNAL_STAT64 1
+#endif
#if defined(__INSIDE_CYGWIN__) || defined(_COMPILING_NEWLIB)
#define __IMPORT
#else