Open Grahack opened 9 years ago
Removing the condition #if PTW32_LEVEL >= PTW32_LEVEL_MAX
in pthreads-.../sched.h
at line 117 suppresses the problem. Maybe there is an option to pass to set PTW32_LEVEL
to avoid this?
This may be interesting too (but dated 2008): https://sourceware.org/ml/pthreads-win32/2008/msg00046.html
Hi, exact same problem here (1Y+ later) but removing the condition in sched.h:117
was not enough, I had to keep the # include <sys/types.h>
from that condition and add a typedef int pid_t;
as well.
I also had to comment the #ifndef HAVE_STRUCT_TIMESPEC
(the whole block) in pthread.h:305
And finally, replace the call to usleep(usec)
in sim_avr.c:305
by a call to Sleep(usec)
as reported in issue #2 since the Windows Sleep() function uses milliseconds as input.
Oh, and comment the definition of sleep()
in sim_network.h:42
(redundant with MinGW's sleep()
)
Hi, Maybe my praying skills are not sharp enough, I got this after following the build instructions and trying a
make
.