i386/hax: remove duplicated includes
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 17 Oct 2017 16:43:59 +0000 (13:43 -0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Mon, 18 Dec 2017 14:07:02 +0000 (17:07 +0300)
applied using ./scripts/clean-includes

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
include/sysemu/hax.h
target/i386/hax-darwin.c
target/i386/hax-darwin.h
target/i386/hax-windows.h

index 232a68ab1bc6f3689334c783869a6d016b7b364b..f25239962328974c18c132a751c3888df98d1778 100644 (file)
@@ -22,7 +22,6 @@
 #ifndef QEMU_HAX_H
 #define QEMU_HAX_H
 
-#include "config-host.h"
 #include "qemu-common.h"
 
 int hax_sync_vcpus(void);
index 1c5bbd0a2d3b2ea2f8c58ed3fd3c83cb3a2d2c6e..ee9417454c2c093c616c78c7a84337ec771d7c6f 100644 (file)
  */
 
 /* HAX module interface - darwin version */
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <errno.h>
+#include "qemu/osdep.h"
 #include <sys/ioctl.h>
 
-#include "qemu/osdep.h"
 #include "target/i386/hax-i386.h"
 
 hax_fd hax_mod_open(void)
index 0c0968b77d50d64d1afce45b2575f1fa38de4b53..fb8e25a096490aac4c8d1d870be8bec49e100928 100644 (file)
 #ifndef TARGET_I386_HAX_DARWIN_H
 #define TARGET_I386_HAX_DARWIN_H
 
-#include <sys/types.h>
 #include <sys/ioctl.h>
-#include <sys/mman.h>
-#include <stdarg.h>
 
 #define HAX_INVALID_FD  (-1)
 static inline int hax_invalid_fd(hax_fd fd)
index 1d8f68de9103cc92841ec48dd842dcd995e68351..f7c3e992468790ee6885f74b0e9e2c2d02086f97 100644 (file)
@@ -24,8 +24,6 @@
 #include <memory.h>
 #include <malloc.h>
 #include <winioctl.h>
-#include <string.h>
-#include <stdio.h>
 #include <windef.h>
 
 #define HAX_INVALID_FD INVALID_HANDLE_VALUE