mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Apparently coccinelle can't handle multiline #errors.
This commit is contained in:
@@ -121,9 +121,11 @@ crypto_openssl_get_header_version_str(void)
|
||||
return crypto_openssl_header_version_str;
|
||||
}
|
||||
|
||||
#ifndef COCCI
|
||||
#ifndef OPENSSL_THREADS
|
||||
#error OpenSSL has been built without thread support. Tor requires an \
|
||||
OpenSSL library with thread support enabled.
|
||||
#error "OpenSSL has been built without thread support. Tor requires an \
|
||||
OpenSSL library with thread support enabled."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef NEW_THREAD_API
|
||||
|
||||
@@ -23,9 +23,11 @@
|
||||
#include <syslog.h>
|
||||
#define LOG_WARN LOG_WARNING
|
||||
#if LOG_DEBUG < LOG_ERR
|
||||
#ifndef COCCI
|
||||
#error "Your syslog.h thinks high numbers are more important. " \
|
||||
"We aren't prepared to deal with that."
|
||||
#endif
|
||||
#endif
|
||||
#else /* !(defined(HAVE_SYSLOG_H)) */
|
||||
/* Note: Syslog's logging code refers to priorities, with 0 being the most
|
||||
* important. Thus, all our comparisons needed to be reversed when we added
|
||||
|
||||
Reference in New Issue
Block a user