summaryrefslogtreecommitdiff
path: root/components/libc/compilers/common/unistd.c
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-22 16:53:54 +0800
committerMeco Man <[email protected]>2021-02-22 16:53:54 +0800
commit69dc37e1aa8806d3ef17b8f6fa3d33284b26ef60 (patch)
tree70e0ccfeb83397cf0b2091cb26fad7afbe55330b /components/libc/compilers/common/unistd.c
parent46b5eb378f6ea55963f5795762f2b7e5c97626f1 (diff)
update
Diffstat (limited to 'components/libc/compilers/common/unistd.c')
-rw-r--r--components/libc/compilers/common/unistd.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/components/libc/compilers/common/unistd.c b/components/libc/compilers/common/unistd.c
index 0966242e55..7ecd455480 100644
--- a/components/libc/compilers/common/unistd.c
+++ b/components/libc/compilers/common/unistd.c
@@ -50,7 +50,13 @@ int usleep(useconds_t usec)
}
RTM_EXPORT(usleep);
-pid_t getpid(void)
+pid_t
+#if defined (RT_USING_NEWLIB)
+__rt_libc_getpid
+#else
+getpid
+#endif
+(void)
{
/*TODO*/
return 0;