summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-01-07 21:09:41 -0500
committerNick Mathewson <nickm@torproject.org>2015-01-07 21:09:41 -0500
commit71f409606a686c3be2af22c1247e21b8781d98e6 (patch)
treea5ed599f609d1dea6fecc88faf5bd6150b2406cf /src
parentceed53c39b19488e3c62f06f79a3e60b0ec38184 (diff)
downloadtor-71f409606a686c3be2af22c1247e21b8781d98e6.tar.gz
tor-71f409606a686c3be2af22c1247e21b8781d98e6.zip
Unconfuse coverity when it sees the systemd headers
Diffstat (limited to 'src')
-rw-r--r--src/or/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/or/main.c b/src/or/main.c
index c925b7d593..9e5a916b16 100644
--- a/src/or/main.c
+++ b/src/or/main.c
@@ -76,6 +76,12 @@
#endif
#ifdef HAVE_SYSTEMD
+# if defined(__COVERITY__) && !defined(__INCLUDE_LEVEL__)
+/* Systemd's use of gcc's __INCLUDE_LEVEL__ extension macro appears to confuse
+ * Coverity. Here's a kludge to unconfuse it.
+ */
+# define __INCLUDE_LEVEL__ 2
+# endif
#include <systemd/sd-daemon.h>
#endif