소스 검색

Unconfuse coverity when it sees the systemd headers

Nick Mathewson 10 년 전
부모
커밋
71f409606a
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  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