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

login
register
mail settings
Submitter Stefan Hajnoczi
Date Nov. 1, 2012, 7:05 p.m.
Message ID <1351796754-21703-10-git-send-email-stefanha@redhat.com>
Download mbox | patch
Permalink /patch/196362/
State New
Headers show

Comments

Stefan Hajnoczi - Nov. 1, 2012, 7:05 p.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"