Buildfix for recent OpenBSD/LibreSSL
Tor doesn't compile on recent OpenBSD versions due to OpenSSL version checking. LibreSSL sets it's OPENSSL_VERSION_NUMBER as 0x2000000L, making the OPENSSL_* version macros think it's modern and therefore doesn't need to apply the compat_openssl defines.
The following patch dumbly just checks to see if LIBRESSL_VERSION_NUMBER is define'd, and if so, applies the defines anyway. There's probably a better way to do this, but as it's unknown if/when LibreSSL will institute the compat_openssl defines itself, it should suffice to get Tor actually building for now.
Trac:
Username: _x3j11