Unconfuse coverity when it sees the systemd headers

This commit is contained in:
Nick Mathewson 2015-01-07 21:09:41 -05:00
parent ceed53c39b
commit 71f409606a

View file

@ -76,6 +76,12 @@
#endif #endif
#ifdef HAVE_SYSTEMD #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> #include <systemd/sd-daemon.h>
#endif #endif