History

Include some headers in new multi-thread test

for usleep and gettimeofday.

Michael Matz committed 6 years ago

Commit ce4eafb1 parent 11fc58f1 file · +2 −0Browse files

Unified · Split

tests/libtcc_test_mt.c+2−0
@@ -32,6 +32,8 @@ void sleep_ms(unsigned n) · 31 unmodified lines
3232 Sleep(n);
3333 }
3434 #else
35+#include <sys/time.h>
36+#include <unistd.h>
3537 #include <pthread.h>
3638 #define TF_TYPE(func, param) void* func(void *param)
3739 typedef TF_TYPE(ThreadFunc, x);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t