summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2013-10-28 13:27:18 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2013-11-05 13:53:13 +0100
commit77e538040cafd33c994c3c6bbc9b2e37450306ad (patch)
treea8775fbf6e4dc440ca1b5807dd4bd9b57e060599 /include
parent27838f3217486db50598e3c418e78f3643354c05 (diff)
build: resolve build errors in dependent programs
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 <jengelh@inai.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/libnftables/chain.h1
-rw-r--r--include/libnftables/expr.h1
-rw-r--r--include/libnftables/rule.h1
-rw-r--r--include/libnftables/ruleset.h4
-rw-r--r--include/libnftables/set.h1
-rw-r--r--include/libnftables/table.h1
6 files changed, 9 insertions, 0 deletions
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 <stdio.h>
#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 cdbd8d2..b61afb0 100644
--- a/include/libnftables/rule.h
+++ b/include/libnftables/rule.h
@@ -4,6 +4,7 @@
#include <stdio.h>
#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 35e4d71..3b20bfa 100644
--- a/include/libnftables/ruleset.h
+++ b/include/libnftables/ruleset.h
@@ -3,6 +3,10 @@
#include <stdio.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 a087009..cf63b9b 100644
--- a/include/libnftables/set.h
+++ b/include/libnftables/set.h
@@ -4,6 +4,7 @@
#include <stdio.h>
#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 4a323bd..e3b4888 100644
--- a/include/libnftables/table.h
+++ b/include/libnftables/table.h
@@ -4,6 +4,7 @@
#include <stdio.h>
#include <stdint.h>
#include <stdbool.h>
+#include <sys/types.h>
#ifdef __cplusplus
extern "C" {