Patchwork net: add missing include file

login
register
mail settings
Submitter walimis
Date Dec. 21, 2012, 8:56 a.m.
Message ID <1356080218-18019-1-git-send-email-walimisdev@gmail.com>
Download mbox | patch
Permalink /patch/207770/
State New
Headers show

Comments

walimis - Dec. 21, 2012, 8:56 a.m.
To fix building error:

CC    net/vde.o
net/vde.c: In function ‘vde_cleanup’:
net/vde.c:65:5: error: implicit declaration of function ‘qemu_set_fd_handler’ [-Werror=implicit-function-declaration]
net/vde.c:65:5: error: nested extern declaration of ‘qemu_set_fd_handler’ [-Werror=nested-externs]
cc1: all warnings being treated as errors

Signed-off-by: Liming Wang <walimisdev@gmail.com>
---
 net/vde.c |    1 +
 1 file changed, 1 insertion(+)
Blue Swirl - Dec. 22, 2012, 3:43 p.m.
Thanks, applied.

On Fri, Dec 21, 2012 at 8:56 AM, Liming Wang <walimisdev@gmail.com> wrote:
> To fix building error:
>
> CC    net/vde.o
> net/vde.c: In function ‘vde_cleanup’:
> net/vde.c:65:5: error: implicit declaration of function ‘qemu_set_fd_handler’ [-Werror=implicit-function-declaration]
> net/vde.c:65:5: error: nested extern declaration of ‘qemu_set_fd_handler’ [-Werror=nested-externs]
> cc1: all warnings being treated as errors
>
> Signed-off-by: Liming Wang <walimisdev@gmail.com>
> ---
>  net/vde.c |    1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/net/vde.c b/net/vde.c
> index 754a141..4dea32d 100644
> --- a/net/vde.c
> +++ b/net/vde.c
> @@ -29,6 +29,7 @@
>  #include "clients.h"
>  #include "qemu-common.h"
>  #include "qemu/option.h"
> +#include "qemu/main-loop.h"
>
>  typedef struct VDEState {
>      NetClientState nc;
> --
> 1.7.9.5
>
>

Patch

diff --git a/net/vde.c b/net/vde.c
index 754a141..4dea32d 100644
--- a/net/vde.c
+++ b/net/vde.c
@@ -29,6 +29,7 @@ 
 #include "clients.h"
 #include "qemu-common.h"
 #include "qemu/option.h"
+#include "qemu/main-loop.h"
 
 typedef struct VDEState {
     NetClientState nc;