projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'collectd-5.1' into collectd-5.2
[collectd.git]
/
src
/
pf.c
diff --git
a/src/pf.c
b/src/pf.c
index
0332c3c
..
44f0c7b
100644
(file)
--- a/
src/pf.c
+++ b/
src/pf.c
@@
-19,13
+19,17
@@
#include "plugin.h"
#include "common.h"
#include "plugin.h"
#include "common.h"
-#include <sys/ioctl.h>
-#include <sys/socket.h>
-#include <net/if.h>
+#if HAVE_SYS_IOCTL_H
+# include <sys/ioctl.h>
+#endif
+#if HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+#if HAVE_NET_IF_H
+# include <net/if.h>
+#endif
+
#include <net/pfvar.h>
#include <net/pfvar.h>
-#include <paths.h>
-#include <err.h>
-#include <pwd.h>
#ifndef FCNT_NAMES
# if FCNT_MAX != 3
#ifndef FCNT_NAMES
# if FCNT_MAX != 3