From 0a707c79e9fb7f5f4d4c3ec0d21a559ba848f12a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Wed, 26 Nov 2003 19:15:17 +0000 Subject: 2003-11-26 Corinna Vinschen * libc/include/fcntl.h: Declare syscalls only when building newlib. * libc/include/unistd.h: Ditto. * libc/include/stat.h: Ditto. Also declare struct stat64. --- newlib/libc/include/sys/stat.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'newlib/libc/include/sys/stat.h') diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h index e22f59a5d..4749506c6 100644 --- a/newlib/libc/include/sys/stat.h +++ b/newlib/libc/include/sys/stat.h @@ -137,10 +137,11 @@ int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev )); /* Provide prototypes for most of the _ names that are provided in newlib for some compilers. */ -#ifndef __INSIDE_CYGWIN__ +#ifdef _COMPILING_NEWLIB int _EXFUN(_fstat,( int __fd, struct stat *__sbuf )); int _EXFUN(_stat,( const char *__path, struct stat *__sbuf )); #ifdef __LARGE64_FILES +struct stat64; int _EXFUN(_fstat64,( int __fd, struct stat64 *__sbuf )); #endif #endif -- cgit v1.2.3