diff mbox

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

Message ID 1383638619-10735-1-git-send-email-tomasz.bursztyka@linux.intel.com
State Accepted
Headers show

Commit Message

Tomasz Bursztyka Nov. 5, 2013, 8:03 a.m. UTC
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(+)

Comments

Pablo Neira Ayuso Nov. 5, 2013, 9:13 a.m. UTC | #1
On Tue, Nov 05, 2013 at 10:03:39AM +0200, Tomasz Bursztyka wrote:
> 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.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);