From 78970a51f33f72488632d423a65f566e999f8aa5 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 26 Apr 2008 07:49:39 +0000 Subject: * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__. (fstatat): Fix type of third parameter. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/stat.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 1dcaa51ef..94bc49f3e 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2008-04-24 Corinna Vinschen + + * libc/include/sys/stat.h: Guard at-functions with !__INSIDE_CYGWIN__. + (fstatat): Fix type of third parameter. + 2008-04-25 Nick Clifton * libc/machine/arm/setjmp.S: Fix thumb2 support. diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h index 8b8aa6563..06a71a978 100644 --- a/newlib/libc/include/sys/stat.h +++ b/newlib/libc/include/sys/stat.h @@ -134,9 +134,9 @@ int _EXFUN(lstat,( const char *__path, struct stat *__buf )); int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev )); #endif -#if defined (__CYGWIN__) +#if defined (__CYGWIN__) && !defined(__INSIDE_CYGWIN__) int _EXFUN(fchmodat, (int, const char *, mode_t, int)); -int _EXFUN(fstatat, (int, const char *, struct __stat64 *, int)); +int _EXFUN(fstatat, (int, const char *, struct stat *, int)); int _EXFUN(mkdirat, (int, const char *, mode_t)); int _EXFUN(mkfifoat, (int, const char *, mode_t)); int _EXFUN(mknodat, (int, const char *, mode_t, dev_t)); -- cgit v1.2.3