The headers do not compile standalone, which also causes nftables to fail to build for the same reason. $ gcc -x c -Wall -c *.h chain.h:62:35: error: unknown type name ‘size_t’ expr.h:40:39: error: unknown type name ‘size_t’ rule.h:60:34: error: unknown type name ‘size_t’ ruleset.h:20:1: error: unknown type name ‘bool’ ruleset.h:20:59: error: unknown type name ‘uint16_t’ ruleset.h:21:52: error: unknown type name ‘uint16_t’ ruleset.h:22:50: error: unknown type name ‘uint16_t’ ruleset.h:23:63: error: unknown type name ‘uint16_t’ ruleset.h:39:37: error: unknown type name ‘size_t’ ruleset.h:39:80: error: unknown type name ‘uint32_t’ ruleset.h:39:95: error: unknown type name ‘uint32_t’ set.h:40:33: error: unknown type name ‘size_t’ set.h:110:38: error: unknown type name ‘size_t’ table.h:50:35: error: unknown type name ‘size_t’ Signed-off-by: Jan Engelhardt <jengelh@xxxxxxx> --- include/libnftables/chain.h | 1 + include/libnftables/expr.h | 1 + include/libnftables/rule.h | 1 + include/libnftables/ruleset.h | 4 ++++ include/libnftables/set.h | 1 + include/libnftables/table.h | 1 + 6 files changed, 9 insertions(+) diff --git a/include/libnftables/chain.h b/include/libnftables/chain.h index d85a2a2..d3ba75b 100644 --- a/include/libnftables/chain.h +++ b/include/libnftables/chain.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <stdbool.h> +#include <sys/types.h> #ifdef __cplusplus extern "C" { diff --git a/include/libnftables/expr.h b/include/libnftables/expr.h index 64c407c..81e224c 100644 --- a/include/libnftables/expr.h +++ b/include/libnftables/expr.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <stdbool.h> +#include <sys/types.h> #ifdef __cplusplus extern "C" { diff --git a/include/libnftables/rule.h b/include/libnftables/rule.h index a501d2d..5b5263a 100644 --- a/include/libnftables/rule.h +++ b/include/libnftables/rule.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <stdbool.h> +#include <sys/types.h> #ifdef __cplusplus extern "C" { diff --git a/include/libnftables/ruleset.h b/include/libnftables/ruleset.h index a4a1279..49f7c4e 100644 --- a/include/libnftables/ruleset.h +++ b/include/libnftables/ruleset.h @@ -1,6 +1,10 @@ #ifndef _RULESET_H_ #define _RULESET_H_ +#include <stdbool.h> +#include <stdint.h> +#include <sys/types.h> + #ifdef __cplusplus extern "C" { #endif diff --git a/include/libnftables/set.h b/include/libnftables/set.h index 14a6327..1bd7670 100644 --- a/include/libnftables/set.h +++ b/include/libnftables/set.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <stdbool.h> +#include <sys/types.h> enum { NFT_SET_ATTR_TABLE, diff --git a/include/libnftables/table.h b/include/libnftables/table.h index 42a4aa7..86978e1 100644 --- a/include/libnftables/table.h +++ b/include/libnftables/table.h @@ -3,6 +3,7 @@ #include <stdint.h> #include <stdbool.h> +#include <sys/types.h> #ifdef __cplusplus extern "C" { -- 1.8.2 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html