Patchwork [9/9] Remove unncessary includes

login
register
mail settings
Submitter Jes Sorensen
Date Oct. 26, 2010, 8:39 a.m.
Message ID <1288082367-27944-10-git-send-email-Jes.Sorensen@redhat.com>
Download mbox | patch
Permalink /patch/69207/
State New
Headers show

Comments

Jes Sorensen - Oct. 26, 2010, 8:39 a.m.
From: Jes Sorensen <Jes.Sorensen@redhat.com>

No need to include stdlib.h for BSD as it is included by
qemu-common.h, windows.h is handled by sysemu.h and osdep.c no longer
needs malloc.h

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
---
 osdep.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

Patch

diff --git a/osdep.c b/osdep.c
index 0d48561..327583b 100644
--- a/osdep.c
+++ b/osdep.c
@@ -44,14 +44,6 @@ 
 extern int madvise(caddr_t, size_t, int);
 #endif
 
-#ifdef _WIN32
-#include <windows.h>
-#elif defined(CONFIG_BSD)
-#include <stdlib.h>
-#else
-#include <malloc.h>
-#endif
-
 #include "qemu-common.h"
 #include "trace.h"
 #include "sysemu.h"