fix compile error when gcc using <-with-newlib> function

This commit is contained in:
Liu_Weichao
2023-05-18 16:48:55 +08:00
parent ffeaf4771e
commit 13432d41c6
2 changed files with 4 additions and 7 deletions

View File

@@ -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;
@@ -59,6 +60,7 @@ typedef struct pthread_mutexattr {
} pthread_mutexattr_t;
typedef int pthread_mutex_t ;
#endif
#ifdef __cplusplus
}