Skip to content

Is pthread_t check for non-integers still necessary?

Dear developers,

Is the deactivation of non-integer pthread_t types by commit 756d286f still valid?

I am asking because I removed the pthread_t integer check in the configure script for compiling sane-backends on FreeBSD 12 and, thereafter, the compilation still succeeded. At a first quick glance, sanei_thread.c looks fine. In which situations will non-integer types of pthread_t crash sane?

Edit no. 1: The two backends below require the pthread library according to configure:

    *** kvs40xx backend requires pthread library - disabling
[...]
    *** mustek_usb2 backend requires pthread library - disabling

Kind regards,

Martin

Edited by Martin
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information