summaryrefslogtreecommitdiffstats
path: root/include/libnftables/table.h
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/libnftables/table.h
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/libnftables/table.h')
-rw-r--r--include/libnftables/table.h1
1 files changed, 1 insertions, 0 deletions
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" {