I wrote:
For whatever isn't handled above, my suggestion for now is to keep the failure if ldap_pvt_thread_t is a struct/union or wider than long, and see if anyone still complains.
Done. Compiles unless pointers are wider than long, but the basic problem remains.