diff mbox

net: Add missing include statement (fix compiler warnings for MinGW)

Message ID 1356041393-13853-1-git-send-email-sw@weilnetz.de
State Accepted
Headers show

Commit Message

Stefan Weil Dec. 20, 2012, 10:09 p.m. UTC
These and some more compiler warnings were caused by a recent commit:

net/tap-win32.c:724: warning: no previous prototype for ‘tap_has_ufo’
net/tap-win32.c:729: warning: no previous prototype for ‘tap_has_vnet_hdr’
...

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 net/tap-win32.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Blue Swirl Dec. 22, 2012, 3:42 p.m. UTC | #1
Thanks, applied.

On Thu, Dec 20, 2012 at 10:09 PM, Stefan Weil <sw@weilnetz.de> wrote:
> These and some more compiler warnings were caused by a recent commit:
>
> net/tap-win32.c:724: warning: no previous prototype for ‘tap_has_ufo’
> net/tap-win32.c:729: warning: no previous prototype for ‘tap_has_vnet_hdr’
> ...
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>  net/tap-win32.c |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/net/tap-win32.c b/net/tap-win32.c
> index 0c63cbd..265369c 100644
> --- a/net/tap-win32.c
> +++ b/net/tap-win32.c
> @@ -31,6 +31,7 @@
>  #include "qemu-common.h"
>  #include "clients.h"            /* net_init_tap */
>  #include "net/net.h"
> +#include "net/tap.h"            /* tap_has_ufo, ... */
>  #include "sysemu/sysemu.h"
>  #include "qemu/error-report.h"
>  #include <stdio.h>
> --
> 1.7.10.4
>
>
diff mbox

Patch

diff --git a/net/tap-win32.c b/net/tap-win32.c
index 0c63cbd..265369c 100644
--- a/net/tap-win32.c
+++ b/net/tap-win32.c
@@ -31,6 +31,7 @@ 
 #include "qemu-common.h"
 #include "clients.h"            /* net_init_tap */
 #include "net/net.h"
+#include "net/tap.h"            /* tap_has_ufo, ... */
 #include "sysemu/sysemu.h"
 #include "qemu/error-report.h"
 #include <stdio.h>