iptables: include libiptc headers before capability.h
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 10 May 2016 16:01:49 +0000 (18:01 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Wed, 10 Aug 2016 06:07:33 +0000 (08:07 +0200)
Some versions of sys/capability.h seem to have conflicting declarations
with other (linux) kernel header files, so order matters.

src/iptables.c

index a2ed4c7..66dbab7 100644 (file)
 #include "plugin.h"
 #include "configfile.h"
 
+#include <libiptc/libiptc.h>
+#include <libiptc/libip6tc.h>
+
 #ifdef HAVE_SYS_CAPABILITY_H
 # include <sys/capability.h>
 #endif
 
-#include <libiptc/libiptc.h>
-#include <libiptc/libip6tc.h>
-
 /*
  * iptc_handle_t was available before libiptc was officially available as a
  * shared library. Note, that when the shared lib was introduced, the API and