dinhvh / libetpan

Mail Framework for C Language
www.etpan.org
Other
612 stars 284 forks source link

configure.ac: Improve C99 compatibility of pthread_create check #423

Open fweimer-rh opened 1 year ago

fweimer-rh commented 1 year ago

Use a fake prototype (similar to the one used by autoconf internally) to avoid calling the undeclared pthread_create function. Otherwie the the check will never succeed with compilers which do not support implicit function declarations. (Implicit function declarations were removed from C99 in 1999.)

Related to: