diff options
| author | Stefan Weil | 2013-01-16 19:04:27 +0100 |
|---|---|---|
| committer | Blue Swirl | 2013-02-02 21:13:19 +0100 |
| commit | 7b2d9779818f4c0d4c31d3a0292bee1c4b633217 (patch) | |
| tree | 8189aea68cdae8fbf824930b972876c59a2f2ee1 /include | |
| parent | Update version for 1.4.0-rc0 (diff) | |
| download | qemu-7b2d9779818f4c0d4c31d3a0292bee1c4b633217.tar.gz qemu-7b2d9779818f4c0d4c31d3a0292bee1c4b633217.tar.xz qemu-7b2d9779818f4c0d4c31d3a0292bee1c4b633217.zip | |
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 'include')
| -rw-r--r-- | include/sysemu/os-win32.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sysemu/os-win32.h b/include/sysemu/os-win32.h index d0e9234d24..bf9edeb9ab 100644 --- a/include/sysemu/os-win32.h +++ b/include/sysemu/os-win32.h @@ -73,6 +73,8 @@ struct tm *gmtime_r(const time_t *timep, struct tm *result); #undef localtime_r struct tm *localtime_r(const time_t *timep, struct tm *result); +char *strtok_r(char *str, const char *delim, char **saveptr); + static inline void os_setup_signal_handling(void) {} static inline void os_daemonize(void) {} static inline void os_setup_post(void) {} |
