forked from xuos/xiuos
				
			fix compile error when gcc using <-with-newlib> function
This commit is contained in:
		
							parent
							
								
									ffeaf4771e
								
							
						
					
					
						commit
						13432d41c6
					
				| 
						 | 
					@ -29,6 +29,7 @@ extern "C" {
 | 
				
			||||||
#include <time.h>
 | 
					#include <time.h>
 | 
				
			||||||
#include <sys/time.h>
 | 
					#include <sys/time.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if !defined(_SYS_SCHED_H_) && !defined(_SYS__PTHREADTYPES_H_)
 | 
				
			||||||
typedef int   pid_t;
 | 
					typedef int   pid_t;
 | 
				
			||||||
typedef unsigned long int pthread_t; 
 | 
					typedef unsigned long int pthread_t; 
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -59,6 +60,7 @@ typedef struct pthread_mutexattr {
 | 
				
			||||||
} pthread_mutexattr_t;
 | 
					} pthread_mutexattr_t;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
typedef int pthread_mutex_t ;
 | 
					typedef int pthread_mutex_t ;
 | 
				
			||||||
 | 
					#endif
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef __cplusplus
 | 
					#ifdef __cplusplus
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -100,8 +100,8 @@ CONFIG_SMALL_NUMBER_64B=16
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# CONFIG_KERNEL_SEMAPHORE=y
 | 
					# CONFIG_KERNEL_SEMAPHORE=y
 | 
				
			||||||
# CONFIG_KERNEL_MUTEX=y
 | 
					# CONFIG_KERNEL_MUTEX=y
 | 
				
			||||||
CONFIG_KERNEL_EVENT=n
 | 
					CONFIG_KERNEL_EVENT=y
 | 
				
			||||||
CONFIG_KERNEL_MESSAGEQUEUE=n
 | 
					CONFIG_KERNEL_MESSAGEQUEUE=y
 | 
				
			||||||
CONFIG_KTASK_PRIORITY_8=y
 | 
					CONFIG_KTASK_PRIORITY_8=y
 | 
				
			||||||
CONFIG_KTASK_PRIORITY_MAX=8
 | 
					CONFIG_KTASK_PRIORITY_MAX=8
 | 
				
			||||||
CONFIG_TICK_PER_SECOND=100
 | 
					CONFIG_TICK_PER_SECOND=100
 | 
				
			||||||
| 
						 | 
					@ -115,11 +115,6 @@ CONFIG_IDLE_KTASK_STACKSIZE=512
 | 
				
			||||||
CONFIG_ZOMBIE_KTASK_STACKSIZE=512
 | 
					CONFIG_ZOMBIE_KTASK_STACKSIZE=512
 | 
				
			||||||
# CONFIG_KERNEL_TASK_ISOLATION is not set
 | 
					# CONFIG_KERNEL_TASK_ISOLATION is not set
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# Memory Management
 | 
					 | 
				
			||||||
#
 | 
					 | 
				
			||||||
# CONFIG_KERNEL_MEMBLOCK is not set
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
# Command shell
 | 
					# Command shell
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue