summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-09-08 19:32:20 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-09-11 23:41:38 +0200
commit5b7d1fc6a9ad494801d481615a5af73f82753ac1 (patch)
tree60a3ad833bb8d9973b91bb229e6ec05a94aaecd5 /include
parent702f9905b616a8400eae1ae3ad88029e733a91b8 (diff)
include: include <stdlib.h> in <nft.h>
It provides malloc()/free(), which is so basic that we need it everywhere. Include via <nft.h>. The ultimate purpose is to define more things in <nft.h>. While it has not corresponding C sources, <nft.h> can contain macros and static inline functions, and is a good place for things that we shall have everywhere. Since <stdlib.h> provides malloc()/free() and size_t, that is a very basic dependency, that will be needed for that. Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include')
-rw-r--r--include/nft.h1
-rw-r--r--include/utils.h1
2 files changed, 1 insertions, 1 deletions
diff --git a/include/nft.h b/include/nft.h
index 967eb7bc..9384054c 100644
--- a/include/nft.h
+++ b/include/nft.h
@@ -6,5 +6,6 @@
#include <stdbool.h>
#include <stdint.h>
+#include <stdlib.h>
#endif /* NFTABLES_NFT_H */
diff --git a/include/utils.h b/include/utils.h
index 5b8b181c..36a28f89 100644
--- a/include/utils.h
+++ b/include/utils.h
@@ -3,7 +3,6 @@
#include <asm/byteorder.h>
#include <stdarg.h>
-#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <assert.h>