projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
check_capability: explicitly target recent linux implementations
[collectd.git]
/
src
/
dns.c
diff --git
a/src/dns.c
b/src/dns.c
index
be6d0dc
..
5312839
100644
(file)
--- a/
src/dns.c
+++ b/
src/dns.c
@@
-351,7
+351,7
@@
static int dns_init (void)
listen_thread_init = 1;
-#if
def HAVE_SYS_CAPABILITY_H
+#if
defined(HAVE_SYS_CAPABILITY_H) && defined(CAP_NET_RAW)
if (check_capability (CAP_NET_RAW) != 0)
{
if (getuid () == 0)