Always use pthreads for macOS

https://gitlab.com/sane-project/backends/-/issues/153
merge-requests/569/merge
Ben Olden-Cooligan 2024-01-11 20:20:47 -08:00
rodzic bff8d25007
commit 3f217248f4
1 zmienionych plików z 10 dodań i 2 usunięć

Wyświetl plik

@ -248,8 +248,16 @@ AC_DEFUN([SANE_CHECK_PTHREAD],
AC_DEFINE(PTHREAD_T_IS_INTEGER, 1,
[Define if pthread_t is integer.])
else
# Until the sanei_thread implementation is fixed.
use_pthread=no
case "$host_os" in
darwin*)
# Always use pthreads on macOS
use_pthread=yes
;;
*)
# Until the sanei_thread implementation is fixed.
use_pthread=no
;;
esac
fi
if test "$have_pthread" = "yes" ; then