fix cortex-m3-emulator start shell failure and fix compile error when using gcc -with-newlib param

This commit is contained in:
Liu_Weichao
2023-05-22 20:21:50 +08:00
parent 65220e5aa7
commit 089f9c8975
3 changed files with 4 additions and 235 deletions
@@ -29,6 +29,7 @@ extern "C" {
#include <time.h>
#include <sys/time.h>
#if !defined(_SYS_SCHED_H_) && !defined(_SYS__PTHREADTYPES_H_)
typedef int pid_t;
typedef unsigned long int pthread_t;
@@ -58,7 +59,8 @@ typedef struct pthread_mutexattr {
int pshared;
} pthread_mutexattr_t;
typedef int pthread_mutex_t ;
typedef int pthread_mutex_t;
#endif
#ifdef __cplusplus
}