I am attempting to rebuild SANE with the latest w64 tools.
SANE builds fine with the old pthreads implementation, but fails with winpthreads.
SANE defines SANE_Pid as a pthread_t. They then try to expand a SANE_Pid pointer.
pid->p = 0;
This works under pthreads, but fails with winpthreads as winpthreads does not define pthread_t as a structure. I see that the pthread.h header file defines the structure but the structure is commented out.
What is the "correct way" of handling this if there is one? Is winpthreads broken or is SANE broken?