julius-speech / julius

Open-Source Large Vocabulary Continuous Speech Recognition Engine
BSD 3-Clause "New" or "Revised" License
1.84k stars 299 forks source link

libjulius: Fix incompatible types in POSIX threads configure checks #195

Open fweimer-rh opened 10 months ago

fweimer-rh commented 10 months ago

NULL is not necessarily a valid pthread_t value. Compilers increasingly enforce C type safety, and these configure checks may fail incorrectly with such compilers. POSIX guarantees that pthread_self() returns a valid pthread_t value, so use that instead.

Related to: