Created attachment 536052 [details, diff]
Fix LibreSSL 2.7
Because LibreSSL introduced several new APIs to the upstream, dev-python/pypy3-6.0.0 cannot be built with LibreSSL 2.7 successfully due to the redefinition of several functions already presented in the program as compatibility layer. The attached patch fixes the issue.
Like pypy3, pypy is likely to be affected by the same problem, a similar patch can be written with this one as a reference, but untested.
Is this the only change necessary? I'd be surprised by that.
Could you submit it upstream?