summary refs log tree commit diff stats
path: root/util/osdep.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2016-01-29 17:49:55 +0000
committerPeter Maydell <peter.maydell@linaro.org>2016-02-04 17:01:04 +0000
commitaafd758410015e08b1aa8964d739ba8587ce58dc (patch)
treefcaa184bf2e2faa09111d7bfc40ee9257a8415f0 /util/osdep.c
parent9c058332f36bc84db57f3d54566228799c5e9605 (diff)
downloadfocaccia-qemu-aafd758410015e08b1aa8964d739ba8587ce58dc.tar.gz
focaccia-qemu-aafd758410015e08b1aa8964d739ba8587ce58dc.zip
util: 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-6-git-send-email-peter.maydell@linaro.org
Diffstat (limited to 'util/osdep.c')
-rw-r--r--util/osdep.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/util/osdep.c b/util/osdep.c
index 534b51147c..8356bdd3d8 100644
--- a/util/osdep.c
+++ b/util/osdep.c
@@ -21,24 +21,15 @@
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  * THE SOFTWARE.
  */
-#include <stdlib.h>
-#include <stdio.h>
-#include <stdarg.h>
-#include <stdbool.h>
-#include <string.h>
-#include <errno.h>
-#include <unistd.h>
-#include <fcntl.h>
+#include "qemu/osdep.h"
 
 /* Needed early for CONFIG_BSD etc. */
-#include "config-host.h"
 
 #if defined(CONFIG_MADVISE) || defined(CONFIG_POSIX_MADVISE)
 #include <sys/mman.h>
 #endif
 
 #ifdef CONFIG_SOLARIS
-#include <sys/types.h>
 #include <sys/statvfs.h>
 /* See MySQL bug #7156 (http://bugs.mysql.com/bug.php?id=7156) for
    discussion about Solaris header problems */