All of lore.kernel.org
 help / color / mirror / Atom feed
* [libnftables PATCH] src: Fix a build issue on header inclusion in internal.h
@ 2013-11-05  8:03 Tomasz Bursztyka
  2013-11-05  9:13 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Tomasz Bursztyka @ 2013-11-05  8:03 UTC (permalink / raw)
  To: netfilter-devel; +Cc: 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));

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
---
 src/internal.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/internal.h b/src/internal.h
index 6449a9f..a10d874 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -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);
-- 
1.8.4.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-05  9:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-05  8:03 [libnftables PATCH] src: Fix a build issue on header inclusion in internal.h Tomasz Bursztyka
2013-11-05  9:13 ` Pablo Neira Ayuso

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.