mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-25 07:07:52 +01:00
Unconfuse coverity when it sees the systemd headers
This commit is contained in:
parent
ceed53c39b
commit
71f409606a
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue