Skip to contentSkip to conversation

src: Fix a build issue on header inclusion in internal.h

PATCH Applied Tomasz Bursztyka 2 participants 2 messages Nov 5, 2013 netfilter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 src: Fix a build issue on header inclusion in internal.h

Fixes:
In file included from utils.c:11:0:
./internal.h:93:17: error: unknown type name 'FILE'
int nft_fprintf(FILE *fp, void *obj, uint32_t type, uint32_t flags, int (*snprintf_cb)(char *buf, size_t bufsiz, void *obj, uint32_t type, uint32_t flags));

---
 src/internal.h | 1 +
 1 file changed, 1 insertion(+)
src/internal.h +1 -0
index 6449a9f..a10d874 100644
@@ -90,6 +90,7 @@ const char *nft_verdict2str(uint32_t verdict);
 int nft_str2verdict(const char *verdict);
 int nft_get_value(enum nft_type type, void *val, void *out);
 
+#include <stdio.h>
 int nft_fprintf(FILE *fp, void *obj, uint32_t type, uint32_t flags, int (*snprintf_cb)(char *buf, size_t bufsiz, void *obj, uint32_t type, uint32_t flags));
 
 void xfree(const void *ptr);
Signature · 1 line
1.8.4.2
maintainer Applied
#1 lore raw
Quoted 6 lines · Tomasz Bursztyka

Fixes:
In file included from utils.c:11:0:
./internal.h:93:17: error: unknown type name 'FILE'
int nft_fprintf(FILE *fp, void *obj, uint32_t type, uint32_t flags, int (*snprintf_cb)(char *buf, size_t bufsiz, void *obj, uint32_t type, uint32_t flags));

Applied, thanks Tomasz.