Include some headers in new multi-thread test

for usleep and gettimeofday.
This commit is contained in:
Michael Matz 2019-12-12 03:31:21 +01:00
parent 11fc58fa13
commit ce4eafb34f

View File

@ -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);