diff --git a/configure b/configure index 38f49e082c..02dd1c6a03 100755 --- a/configure +++ b/configure @@ -3332,7 +3332,7 @@ disabled zlib || check_lib zlib.h zlibVersion -lz || disable zlib disabled bzlib || check_lib2 bzlib.h BZ2_bzlibVersion -lbz2 || disable bzlib if ! disabled w32threads && ! enabled pthreads; then - check_func _beginthreadex && enable w32threads + check_func_headers "windows.h process.h" _beginthreadex && enable w32threads fi # check for some common methods of building with pthread support