X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fpf.c;h=a2bd5499916d735a3ec8143e93c8d79caa3485cf;hb=290741f2e6de9e9b467463c1f0c6f031c4036428;hp=d11bd8aaedabb6c2b5232009671007218156a0a3;hpb=6bf2e82bf5049af097beae4a8b7f086466520839;p=collectd.git diff --git a/src/pf.c b/src/pf.c index d11bd8aa..225d536e 100644 --- a/src/pf.c +++ b/src/pf.c @@ -29,6 +29,9 @@ #if HAVE_NET_IF_H # include #endif +#if HAVE_NETINET_IN_H +# include +#endif #include @@ -103,7 +106,6 @@ static int pf_read (void) } close (fd); - fd = -1; if (!state.running) {