From 5ecc040cff80eb26ef4977ce6dfe7f429778b584 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 9 Jan 2012 22:49:20 +0000 Subject: [PATCH] * libc/include/sys/unistd.h [__CYGWIN__] (get_current_dir_name): Declare. --- newlib/ChangeLog | 5 +++++ newlib/libc/include/sys/unistd.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 2b4783c3c..e14db272f 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2012-01-09 Yaakov Selkowitz + + * libc/include/sys/unistd.h [__CYGWIN__] (get_current_dir_name): + Declare. + 2012-01-09 Yaakov Selkowitz * libc/include/complex.h: Fix "/*" within comment warning. diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 900faa7bf..6bae77483 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -71,6 +71,9 @@ pid_t _EXFUN(fork, (void )); long _EXFUN(fpathconf, (int __fd, int __name )); int _EXFUN(fsync, (int __fd)); int _EXFUN(fdatasync, (int __fd)); +#if defined(__CYGWIN__) +char * _EXFUN(get_current_dir_name, (void)); +#endif char * _EXFUN(getcwd, (char *__buf, size_t __size )); #if defined(__CYGWIN__) int _EXFUN(getdomainname ,(char *__name, size_t __len));