From e21cf313ca6825a3ce994e1aa765664cc100fb42 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Wed, 3 Jul 1996 14:24:07 +0000 Subject: another attempt at the rtems_posix_api ifdef --- cpukit/libcsupport/src/newlibc.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'cpukit') 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; -- cgit v1.2.3