netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [nft tool PATCH] src: include <stdio.h>
@ 2013-10-28 23:27 Arturo Borrero Gonzalez
  2013-10-29 12:24 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: Arturo Borrero Gonzalez @ 2013-10-28 23:27 UTC (permalink / raw)
  To: netfilter-devel

This prevents compile errors:
	[...] error: unknown type name ‘FILE’

when using with the libnftables patch 'src: add fprintf API functions'.

Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
---
 src/netlink_delinearize.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c
index 3bb143b..8318e5c 100644
--- a/src/netlink_delinearize.c
+++ b/src/netlink_delinearize.c
@@ -10,6 +10,7 @@
  */
 
 #include <stdlib.h>
+#include <stdio.h>
 #include <stdbool.h>
 #include <string.h>
 #include <limits.h>

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

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

* Re: [nft tool PATCH] src: include <stdio.h>
  2013-10-28 23:27 [nft tool PATCH] src: include <stdio.h> Arturo Borrero Gonzalez
@ 2013-10-29 12:24 ` Pablo Neira Ayuso
  0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2013-10-29 12:24 UTC (permalink / raw)
  To: Arturo Borrero Gonzalez; +Cc: netfilter-devel

On Tue, Oct 29, 2013 at 12:27:10AM +0100, Arturo Borrero Gonzalez wrote:
> This prevents compile errors:
> 	[...] error: unknown type name ‘FILE’
> 
> when using with the libnftables patch 'src: add fprintf API functions'.
> 
> Signed-off-by: Arturo Borrero Gonzalez <arturo.borrero.glez@gmail.com>
> ---
>  src/netlink_delinearize.c |    1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/src/netlink_delinearize.c b/src/netlink_delinearize.c
> index 3bb143b..8318e5c 100644
> --- a/src/netlink_delinearize.c
> +++ b/src/netlink_delinearize.c
> @@ -10,6 +10,7 @@
>   */
>  
>  #include <stdlib.h>
> +#include <stdio.h>

This means that you have to include this in the libnftables header
files.
--
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

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

end of thread, other threads:[~2013-10-29 12:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-28 23:27 [nft tool PATCH] src: include <stdio.h> Arturo Borrero Gonzalez
2013-10-29 12:24 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).