From patchwork Tue Nov 5 08:03:39 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomasz Bursztyka X-Patchwork-Id: 288418 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id B2C4B2C0246 for ; Tue, 5 Nov 2013 19:04:10 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750894Ab3KEIEI (ORCPT ); Tue, 5 Nov 2013 03:04:08 -0500 Received: from mga03.intel.com ([143.182.124.21]:15572 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750864Ab3KEIEH (ORCPT ); Tue, 5 Nov 2013 03:04:07 -0500 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by azsmga101.ch.intel.com with ESMTP; 05 Nov 2013 00:03:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.93,638,1378882800"; d="scan'208";a="422380361" Received: from rd-180.fi.intel.com ([10.237.68.142]) by fmsmga001.fm.intel.com with ESMTP; 05 Nov 2013 00:03:42 -0800 From: Tomasz Bursztyka To: netfilter-devel@vger.kernel.org Cc: Tomasz Bursztyka Subject: [libnftables PATCH] src: Fix a build issue on header inclusion in internal.h Date: Tue, 5 Nov 2013 10:03:39 +0200 Message-Id: <1383638619-10735-1-git-send-email-tomasz.bursztyka@linux.intel.com> X-Mailer: git-send-email 1.8.4.2 Sender: netfilter-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netfilter-devel@vger.kernel.org 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 --- 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 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);