X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fiptables.c;h=aa53074a641aae4acf9b8d98e0f6907591f04904;hb=af0dd163e5e9ea9de922aba0b71f76d8d921724f;hp=69cd39c48758f352d548764cd20b76f8617153b5;hpb=a690e4ac74e05f7294c22df8e0574e5e6f52f510;p=collectd.git diff --git a/src/iptables.c b/src/iptables.c index 69cd39c4..aa53074a 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -34,10 +34,13 @@ #if OWN_LIBIPTC # include "owniptc/libiptc.h" # include "owniptc/libip6tc.h" -#else + +# define HAVE_IPTC_HANDLE_T 1 +# define HAVE_IP6TC_HANDLE_T 1 + +#else /* if !OWN_LIBIPTC */ # include # include -#endif /* * iptc_handle_t was available before libiptc was officially available as a @@ -51,12 +54,13 @@ * this is somewhat hacky, I didn't find better way to solve that :-/ * -tokkee */ -#ifndef HAVE_IPTC_HANDLE_T +# ifndef HAVE_IPTC_HANDLE_T typedef struct iptc_handle iptc_handle_t; -#endif -#ifndef HAVE_IP6TC_HANDLE_T +# endif +# ifndef HAVE_IP6TC_HANDLE_T typedef struct ip6tc_handle ip6tc_handle_t; -#endif +# endif +#endif /* !OWN_LIBIPTC */ /* * (Module-)Global variables