From 77e538040cafd33c994c3c6bbc9b2e37450306ad Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Mon, 28 Oct 2013 13:27:18 +0100 Subject: build: resolve build errors in dependent programs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The headers do not compile standalone which may cause compilation problems to third party programs. $ 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 Signed-off-by: Pablo Neira Ayuso --- 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 66f19c0..5de7318 100644 --- a/include/libnftables/chain.h +++ b/include/libnftables/chain.h @@ -4,6 +4,7 @@ #include #include #include +#include #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 #include +#include #ifdef __cplusplus extern "C" { diff --git a/include/libnftables/rule.h b/include/libnftables/rule.h index cdbd8d2..b61afb0 100644 --- a/include/libnftables/rule.h +++ b/include/libnftables/rule.h @@ -4,6 +4,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { diff --git a/include/libnftables/ruleset.h b/include/libnftables/ruleset.h index 35e4d71..3b20bfa 100644 --- a/include/libnftables/ruleset.h +++ b/include/libnftables/ruleset.h @@ -3,6 +3,10 @@ #include +#include +#include +#include + #ifdef __cplusplus extern "C" { #endif diff --git a/include/libnftables/set.h b/include/libnftables/set.h index a087009..cf63b9b 100644 --- a/include/libnftables/set.h +++ b/include/libnftables/set.h @@ -4,6 +4,7 @@ #include #include #include +#include enum { NFT_SET_ATTR_TABLE, diff --git a/include/libnftables/table.h b/include/libnftables/table.h index 4a323bd..e3b4888 100644 --- a/include/libnftables/table.h +++ b/include/libnftables/table.h @@ -4,6 +4,7 @@ #include #include #include +#include #ifdef __cplusplus extern "C" { -- cgit v1.2.3