summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1996-07-03 14:24:07 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1996-07-03 14:24:07 +0000
commite21cf313ca6825a3ce994e1aa765664cc100fb42 (patch)
tree695dbb2993323609cca4e173fe95263e1debb9d7 /cpukit
parentswitched from "STATIC INLINE" to "RTEMS_INLINE_ROUTINE" (diff)
downloadrtems-e21cf313ca6825a3ce994e1aa765664cc100fb42.tar.bz2
another attempt at the rtems_posix_api ifdef
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/libcsupport/src/newlibc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cpukit/libcsupport/src/newlibc.c b/cpukit/libcsupport/src/newlibc.c
index e57f537ff5..ec76f9c4d3 100644
--- a/cpukit/libcsupport/src/newlibc.c
+++ b/cpukit/libcsupport/src/newlibc.c
@@ -347,22 +347,21 @@ void exit(int status)
* These are directly supported (and completely correct) in the posix api.
*/
-#if !defined(__RTEMS_POSIX_API__)
-
+#if !defined(RTEMS_POSIX_API)
pid_t __getpid(void)
{
return 0;
}
#endif
-#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
+#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
pid_t getpid(void)
{
return __getpid();
}
#endif
-#if !defined(__RTEMS_POSIX_API__) && !defined(__GO32__)
+#if !defined(RTEMS_POSIX_API) || defined(__GO32__)
int kill( pid_t pid, int sig )
{
return 0;