Skip to content

Commit 19c8cab

Browse files
committed
update
1 parent 69dc37e commit 19c8cab

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

components/libc/compilers/common/unistd.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,7 @@ int usleep(useconds_t usec)
5050
}
5151
RTM_EXPORT(usleep);
5252

53-
pid_t
54-
#if defined (RT_USING_NEWLIB)
55-
__rt_libc_getpid
56-
#else
57-
getpid
58-
#endif
59-
(void)
53+
pid_t getpid(void)
6054
{
6155
/*TODO*/
6256
return 0;

components/libc/compilers/newlib/syscalls.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ __errno ()
3838
int
3939
_getpid_r(struct _reent *ptr)
4040
{
41-
extern pid_t __rt_libc_getpid(void);
42-
return __rt_libc_getpid();
41+
return 0;
4342
}
4443

4544
int

0 commit comments

Comments
 (0)