diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-09 10:47:05 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-22 09:32:13 -0400 |
commit | c1e8e5bb3223b950f79bce5bd3540566fc1fdc7b (patch) | |
tree | e9438a97f05fa30aa06bf2a7d4764d24f07436b1 /src/lib/log/log.h | |
parent | b03c8c74ce87e44fc74e84183fe883018b43f088 (diff) | |
download | tor-c1e8e5bb3223b950f79bce5bd3540566fc1fdc7b.tar.gz tor-c1e8e5bb3223b950f79bce5bd3540566fc1fdc7b.zip |
Apparently coccinelle can't handle multiline #errors.
Diffstat (limited to 'src/lib/log/log.h')
-rw-r--r-- | src/lib/log/log.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/log/log.h b/src/lib/log/log.h index c4a27782c3..c2b20fc228 100644 --- a/src/lib/log/log.h +++ b/src/lib/log/log.h @@ -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 |