aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-02-23 20:46:28 +0000
committerCorinna Vinschen <corinna@vinschen.de>2002-02-23 20:46:28 +0000
commit630c657e6450e0315d8fb021d670925ee41d8ddc (patch)
tree379dd3656b25fce6ddee0faf41bf7dfe7df866a3
parent59ee2e20132c4e5ba8de0c9da5b88dde1c7986f3 (diff)
downloadnewlib-630c657e6450e0315d8fb021d670925ee41d8ddc.zip
newlib-630c657e6450e0315d8fb021d670925ee41d8ddc.tar.gz
newlib-630c657e6450e0315d8fb021d670925ee41d8ddc.tar.bz2
* libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
(_stat): Ditto.
-rw-r--r--newlib/ChangeLog5
-rw-r--r--newlib/libc/include/sys/stat.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 9c92c27..f6b7b59 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,10 @@
2002-02-23 Corinna Vinschen <corinna@vinschen.de>
+ * libc/include/sys/stat.h (_fstat): Don't declare when compiling Cygwin.
+ (_stat): Ditto.
+
+2002-02-23 Corinna Vinschen <corinna@vinschen.de>
+
* libc/sys/cygwin/sys/dirent.h (struct __DIR): Use __off32_t instead
of off_t.
diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h
index 3ef2291..0834bc9 100644
--- a/newlib/libc/include/sys/stat.h
+++ b/newlib/libc/include/sys/stat.h
@@ -134,8 +134,10 @@ int _EXFUN(mknod,( const char *__path, mode_t __mode, dev_t __dev ));
/* Provide prototypes for most of the _<systemcall> names that are
provided in newlib for some compilers. */
+#ifndef __INSIDE_CYGWIN__
int _EXFUN(_fstat,( int __fd, struct stat *__sbuf ));
int _EXFUN(_stat,( const char *__path, struct stat *__sbuf ));
+#endif
#endif /* !_STAT_H_ */
#ifdef __cplusplus