mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
Include some headers in new multi-thread test
for usleep and gettimeofday.
This commit is contained in:
parent
11fc58fa13
commit
ce4eafb34f
@ -32,6 +32,8 @@ void sleep_ms(unsigned n)
|
||||
Sleep(n);
|
||||
}
|
||||
#else
|
||||
#include <sys/time.h>
|
||||
#include <unistd.h>
|
||||
#include <pthread.h>
|
||||
#define TF_TYPE(func, param) void* func(void *param)
|
||||
typedef TF_TYPE(ThreadFunc, x);
|
||||
|
Loading…
Reference in New Issue
Block a user