summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/getpid.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/getpid.c')
-rw-r--r--cpukit/libcsupport/src/getpid.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpukit/libcsupport/src/getpid.c b/cpukit/libcsupport/src/getpid.c
index 53ab2f4dc8..e17b1f2585 100644
--- a/cpukit/libcsupport/src/getpid.c
+++ b/cpukit/libcsupport/src/getpid.c
@@ -11,7 +11,7 @@
#include <unistd.h>
-#include <rtems/score/objectimpl.h>
+#include <rtems.h>
#include <rtems/seterr.h>
/**
@@ -19,7 +19,7 @@
*/
pid_t getpid( void )
{
- return _Objects_Local_node;
+ return rtems_object_get_local_node();
}
#if defined(RTEMS_NEWLIB) && !defined(HAVE__GETPID_R)