From 5d575f7dcd7a436cfb9ec91b6378194f88458efb Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Tue, 13 May 2003 09:26:17 +0000 Subject: [PATCH] * include/cygwin/config.h: Define __USE_INTERNAL_STAT64 appropriately. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/include/cygwin/config.h | 8 ++++++++ 2 files changed, 12 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index cb3c76af6..0ec79a447 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2003-05-13 Corinna Vinschen + + * include/cygwin/config.h: Define __USE_INTERNAL_STAT64 appropriately. + 2003-05-12 Corinna Vinschen * Makefile.in (CYGWIN_START): Define as crt0.o. Add to TARGET_LIBS. 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 -- 2.43.5