From b4e98df6bc7c1e914e8480b15e07c7094b8f035c Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 17 Oct 2001 19:28:35 +0000 Subject: Add __rtems__ as system defining fchdir(). --- newlib/ChangeLog | 2 +- newlib/libc/include/sys/unistd.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'newlib') diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 3bc1e73..8a9e2d6 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,7 +1,7 @@ 2001-10-17 Corinna Vinschen * libc/include/sys/unistd.h: Add prototype for fchdir() when - __CYGWIN__ is defined. + __CYGWIN__ or __rtems__ is defined. 2001-10-01 Charles Wilson diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index c59212c..b9e7690 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -35,7 +35,7 @@ int _EXFUN(execlp, (const char *__file, const char *, ... )); int _EXFUN(execv, (const char *__path, char * const __argv[] )); int _EXFUN(execve, (const char *__path, char * const __argv[], char * const __envp[] )); int _EXFUN(execvp, (const char *__file, char * const __argv[] )); -#if defined(__CYGWIN__) +#if defined(__CYGWIN__) || defined(__rtems__) int _EXFUN(fchdir, (int __fildes)); #endif int _EXFUN(fchmod, (int __fildes, mode_t __mode )); -- cgit v1.1