diff options
| author | thread-liu <[email protected]> | 2020-12-03 09:09:00 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-12-03 09:09:00 +0800 |
| commit | d97530e0ffc6e28a7a68f66dfcf775f02fc007e5 (patch) | |
| tree | 523fdc8c8b15b4c68501ec7f09b29c26954a51db /components/libc | |
| parent | 73391c60fb7b26c5c05188b065196eea75d63145 (diff) | |
| parent | df3d4b7bc9cab6dcc0aaf87cd32bd67bb1531036 (diff) | |
Merge branch 'master' into step4
Diffstat (limited to 'components/libc')
| -rw-r--r-- | components/libc/compilers/common/termios.h | 2 | ||||
| -rw-r--r-- | components/libc/pthreads/semaphore.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/components/libc/compilers/common/termios.h b/components/libc/compilers/common/termios.h index ee2b4d5718..414d0c0cb3 100644 --- a/components/libc/compilers/common/termios.h +++ b/components/libc/compilers/common/termios.h @@ -9,6 +9,8 @@ #ifndef _TERMIOS_H__ #define _TERMIOS_H__ +#include <rtconfig.h> + #ifdef RT_USING_POSIX_TERMIOS #include <sys/types.h> #include <posix_termios.h> diff --git a/components/libc/pthreads/semaphore.c b/components/libc/pthreads/semaphore.c index 2bef10022e..2ed93e99b6 100644 --- a/components/libc/pthreads/semaphore.c +++ b/components/libc/pthreads/semaphore.c @@ -64,7 +64,7 @@ static sem_t *posix_sem_find(const char* name) for (iter = posix_sem_list; iter != RT_NULL; iter = iter->next) { - object = (rt_object_t)&(iter->sem); + object = (rt_object_t)iter->sem; if (strncmp(object->name, name, RT_NAME_MAX) == 0) { |
