aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-01-29 17:50:04 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-02-04 17:41:30 +0000
commitccd241b5a2223c502441714d413d569565e4a3b4 (patch)
tree285e7db843757de84e9d1adf07d8cc77a7ebb2c4
parentcae9fc567d89aacfa556917c49bd5399ee24d0fa (diff)
downloadqemu-ccd241b5a2223c502441714d413d569565e4a3b4.zip
qemu-ccd241b5a2223c502441714d413d569565e4a3b4.tar.gz
qemu-ccd241b5a2223c502441714d413d569565e4a3b4.tar.bz2
contrib: Clean up includes
Clean up includes so that osdep.h is included first and headers which it implies are not included manually. This commit was created with scripts/clean-includes. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1454089805-5470-15-git-send-email-peter.maydell@linaro.org
-rw-r--r--contrib/ivshmem-client/ivshmem-client.c2
-rw-r--r--contrib/ivshmem-client/main.c1
-rw-r--r--contrib/ivshmem-server/ivshmem-server.c2
-rw-r--r--contrib/ivshmem-server/main.c1
4 files changed, 4 insertions, 2 deletions
diff --git a/contrib/ivshmem-client/ivshmem-client.c b/contrib/ivshmem-client/ivshmem-client.c
index 31619d8..44ae364 100644
--- a/contrib/ivshmem-client/ivshmem-client.c
+++ b/contrib/ivshmem-client/ivshmem-client.c
@@ -6,7 +6,7 @@
* top-level directory.
*/
-#include <sys/types.h>
+#include "qemu/osdep.h"
#include <sys/socket.h>
#include <sys/un.h>
diff --git a/contrib/ivshmem-client/main.c b/contrib/ivshmem-client/main.c
index c004870..33ae1da 100644
--- a/contrib/ivshmem-client/main.c
+++ b/contrib/ivshmem-client/main.c
@@ -6,6 +6,7 @@
* top-level directory.
*/
+#include "qemu/osdep.h"
#include "qemu-common.h"
#include "ivshmem-client.h"
diff --git a/contrib/ivshmem-server/ivshmem-server.c b/contrib/ivshmem-server/ivshmem-server.c
index d9e26b0..bfd0fad 100644
--- a/contrib/ivshmem-server/ivshmem-server.c
+++ b/contrib/ivshmem-server/ivshmem-server.c
@@ -5,11 +5,11 @@
* (at your option) any later version. See the COPYING file in the
* top-level directory.
*/
+#include "qemu/osdep.h"
#include "qemu-common.h"
#include "qemu/sockets.h"
#include <sys/mman.h>
-#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#ifdef CONFIG_LINUX
diff --git a/contrib/ivshmem-server/main.c b/contrib/ivshmem-server/main.c
index 9b0d6e2..cca1061 100644
--- a/contrib/ivshmem-server/main.c
+++ b/contrib/ivshmem-server/main.c
@@ -6,6 +6,7 @@
* top-level directory.
*/
+#include "qemu/osdep.h"
#include "qemu-common.h"
#include "ivshmem-server.h"