aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2013-01-16 19:04:27 +0100
committerBlue Swirl <blauwirbel@gmail.com>2013-02-02 20:13:19 +0000
commit7b2d9779818f4c0d4c31d3a0292bee1c4b633217 (patch)
tree8189aea68cdae8fbf824930b972876c59a2f2ee1 /util
parentabd8d4a4d6dfea7ddea72f095f993e1de941614e (diff)
downloadqemu-7b2d9779818f4c0d4c31d3a0292bee1c4b633217.zip
qemu-7b2d9779818f4c0d4c31d3a0292bee1c4b633217.tar.gz
qemu-7b2d9779818f4c0d4c31d3a0292bee1c4b633217.tar.bz2
util: Fix compilation of envlist.c for MinGW
MinGW has no strtok_r, so we need a declaration in sysemu/os-win32.h. We must also fix the include statements in util/envlist.c to include that file. We currently don't need an implementation of strtok_r because the code is compiled but not linked for MinGW. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'util')
-rw-r--r--util/envlist.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/util/envlist.c b/util/envlist.c
index ff99fc4..ebc06cf 100644
--- a/util/envlist.c
+++ b/util/envlist.c
@@ -1,9 +1,4 @@
-#include <assert.h>
-#include <errno.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-
+#include "qemu-common.h"
#include "qemu/queue.h"
#include "qemu/envlist.h"