Patchwork [5/6] net/tap-win32: Fix compiler warning caused by missing include statement

login
register
mail settings
Submitter Stefan Hajnoczi
Date Oct. 19, 2012, 8:54 a.m.
Message ID <1350636864-22263-6-git-send-email-stefanha@redhat.com>
Download mbox | patch
Permalink /patch/192595/
State New
Headers show

Comments

Stefan Hajnoczi - Oct. 19, 2012, 8:54 a.m.
From: Stefan Weil <sw@weilnetz.de>

The include file for net_init_tap was missing:

net/tap-win32.c:703:
 warning: no previous prototype for ‘net_init_tap’

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

Patch

diff --git a/net/tap-win32.c b/net/tap-win32.c
index f1801e2..22dad3f 100644
--- a/net/tap-win32.c
+++ b/net/tap-win32.c
@@ -29,6 +29,7 @@ 
 #include "tap.h"
 
 #include "qemu-common.h"
+#include "clients.h"            /* net_init_tap */
 #include "net.h"
 #include "sysemu.h"
 #include "qemu-error.h"