Skip to contentSkip to conversation

expr: include stdio.h for FILE

PATCH New Harun Wagura Ndichu 1 participant 1 message Nov 19 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 expr: include stdio.h for FILE

libnftnl/expr.h declares nftnl_expr_fprintf(FILE *, ...) but does not include <stdio.h>, so a program that includes it first fails to build:

error: unknown type name 'FILE'

Include it as rule.h and table.h already do.

---
 include/libnftnl/expr.h | 1 +
 1 file changed, 1 insertion(+)
include/libnftnl/expr.h +1 -0
index 41e9f30..2272838 100644
@@ -1,6 +1,7 @@
 #ifndef _LIBNFTNL_EXPR_H_
 #define _LIBNFTNL_EXPR_H_
 
+#include <stdio.h>
 #include <stdint.h>
 #include <stdbool.h>
 #include <sys/types.h>
Signature · 1 line
2.56.1