Explorar o código

Unconfuse coverity when it sees the systemd headers

Nick Mathewson %!s(int64=9) %!d(string=hai) anos
pai
achega
71f409606a
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/or/main.c

+ 6 - 0
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