From 34f31ff211ebed37a3a58f73abfe346ff22bde8a Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 9 Feb 2001 01:01:06 +0000 Subject: [PATCH] 2001-02-08 Jeff Johnston * libc/include/sys/stat.h: Must revert change for mknod for CYGWIN until winsup/cygwin/syscalls.cc changes mknod prototype. --- newlib/ChangeLog | 6 ++++++ newlib/libc/include/sys/stat.h | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index ee9e891e0..ed17a0962 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2001-02-08 Jeff Johnston + + * libc/include/sys/stat.h: Must revert change for mknod + for CYGWIN until winsup/cygwin/syscalls.cc changes mknod + prototype. + 2001-02-08 Jeff Johnston * libc/include/stdio.h: Revert putw prototype. diff --git a/newlib/libc/include/sys/stat.h b/newlib/libc/include/sys/stat.h index 2ab364208..be808518e 100644 --- a/newlib/libc/include/sys/stat.h +++ b/newlib/libc/include/sys/stat.h @@ -125,10 +125,13 @@ int _EXFUN(stat,( const char *__path, struct stat *__sbuf )); mode_t _EXFUN(umask,( mode_t __mask )); #if defined(__rtems__) || defined(__CYGWIN__) -int _EXFUN(mknod,( const char *_path, mode_t _mode, dev_t dev )); int _EXFUN(lstat,( const char *__path, struct stat *__buf )); #endif +#if defined(__rtems__) +int _EXFUN(mknod,( const char *_path, mode_t _mode, dev_t dev )); +#endif + /* Provide prototypes for most of the _ names that are provided in newlib for some compilers. */ int _EXFUN(_fstat,( int __fd, struct stat *__sbuf ));