From f07507a91310bc5696a08f5bbf6ab8679cfbcf73 Mon Sep 17 00:00:00 2001 From: liukangcc Date: Fri, 17 Sep 2021 14:57:42 +0800 Subject: [PATCH] [update] Conflicting files --- components/libc/compilers/common/none-gcc/sys/types.h | 4 +++- components/libc/pthreads/pthread.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/components/libc/compilers/common/none-gcc/sys/types.h b/components/libc/compilers/common/none-gcc/sys/types.h index 8dfffcef97..f7f563035c 100644 --- a/components/libc/compilers/common/none-gcc/sys/types.h +++ b/components/libc/compilers/common/none-gcc/sys/types.h @@ -12,6 +12,8 @@ #define __SYS_TYPES_H__ #include +#include +#include typedef int32_t clockid_t; typedef int32_t key_t; /* Used for interprocess communication. */ @@ -34,4 +36,4 @@ typedef unsigned int u_int; typedef unsigned char u_char; typedef unsigned long u_long; -#endif +#endif \ No newline at end of file diff --git a/components/libc/pthreads/pthread.c b/components/libc/pthreads/pthread.c index 3df51caca6..b0bf39dff6 100644 --- a/components/libc/pthreads/pthread.c +++ b/components/libc/pthreads/pthread.c @@ -61,7 +61,7 @@ pthread_t _pthread_data_create(void) memset(ptd, 0x0, sizeof(_pthread_data_t)); ptd->canceled = 0; - ptd->cancelstate = PTHREAD_CANCEL_ENABLE; + ptd->cancelstate = PTHREAD_CANCEL_DISABLE; ptd->canceltype = PTHREAD_CANCEL_DEFERRED; ptd->magic = PTHREAD_MAGIC;