aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-10-08 15:28:49 +0000
committerCorinna Vinschen <corinna@vinschen.de>2010-10-08 15:28:49 +0000
commit339814ba6f5f5345cfd181977102b12f930eb8f9 (patch)
tree18ef7daac87138d49a4ab4694e36a9f95e4723ff /newlib/libc
parent98b2b9cf57804cb45afc2e260f63d24d9669aabd (diff)
downloadnewlib-339814ba6f5f5345cfd181977102b12f930eb8f9.zip
newlib-339814ba6f5f5345cfd181977102b12f930eb8f9.tar.gz
newlib-339814ba6f5f5345cfd181977102b12f930eb8f9.tar.bz2
* libc/include/sys/unistd.h: Declare getsid, setegid, seteuid for RTEMS.
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/sys/unistd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h
index d6d9b41..f5c97f8 100644
--- a/newlib/libc/include/sys/unistd.h
+++ b/newlib/libc/include/sys/unistd.h
@@ -94,7 +94,7 @@ pid_t _EXFUN(getpgid, (pid_t));
pid_t _EXFUN(getpgrp, (void ));
pid_t _EXFUN(getpid, (void ));
pid_t _EXFUN(getppid, (void ));
-#ifdef __CYGWIN__
+#if defined(__CYGWIN__) || defined(__rtems__)
pid_t _EXFUN(getsid, (pid_t));
#endif
#if !defined(__INSIDE_CYGWIN__)
@@ -146,7 +146,7 @@ int _EXFUN(ruserok, (const char *rhost, int superuser, const char *ruser, const
#endif
void * _EXFUN(sbrk, (ptrdiff_t __incr));
#if !defined(__INSIDE_CYGWIN__)
-#if defined(__CYGWIN__)
+#if defined(__CYGWIN__) || defined(__rtems__)
int _EXFUN(setegid, (gid_t __gid ));
int _EXFUN(seteuid, (uid_t __uid ));
#endif