]> sourceware.org Git - newlib-cygwin.git/commitdiff
* include/cygwin/config.h: Define __USE_INTERNAL_STAT64 appropriately.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 13 May 2003 09:26:17 +0000 (09:26 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 13 May 2003 09:26:17 +0000 (09:26 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/include/cygwin/config.h

index cb3c76af67338f9da2572e8be47ac3ca54616810..0ec79a447524b8cec960ad8ab037026b2e47775c 100644 (file)
@@ -1,3 +1,7 @@
+2003-05-13  Corinna Vinschen  <corinna@vinschen.de>
+
+       * include/cygwin/config.h: Define __USE_INTERNAL_STAT64 appropriately.
+
 2003-05-12  Corinna Vinschen  <corinna@vinschen.de>
 
        * Makefile.in (CYGWIN_START): Define as crt0.o.  Add to TARGET_LIBS.
index 4bafa3c18a8091201f46ccf8b56b3d280fada49a..77815a071ffbdea65c9fa721c0be112f55079bc2 100644 (file)
@@ -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
This page took 0.034519 seconds and 5 git commands to generate.