util: Fix compilation of envlist.c for MinGW
commit7b2d9779818f4c0d4c31d3a0292bee1c4b633217
authorStefan Weil <sw@weilnetz.de>
Wed, 16 Jan 2013 18:04:27 +0000 (16 19:04 +0100)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 2 Feb 2013 20:13:19 +0000 (2 20:13 +0000)
tree8189aea68cdae8fbf824930b972876c59a2f2ee1
parentabd8d4a4d6dfea7ddea72f095f993e1de941614e
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>
include/sysemu/os-win32.h
util/envlist.c