This is an issue in the openssl-sys crate and has been fixed upsteam in the crate[1]. This has trickled down to this package as well. A simple update will fix it and a patch is not necessary, unless some other OpenSSL 4.0 related complication arises.
[1] https://github.com/rust-openssl/rust-openssl/commit/1fc51efa3f63e38a3139e201edf3395e5a10f8ba

