On 07/01/10 12:47, Stefan Weil wrote: > Mingw32 does not provide a declaration and implementation of function > setenv (which is used in sdl.c), so this patch adds both. > > Signed-off-by: Stefan Weil <w...@mail.berlios.de> [snip] > diff --git a/osdep.h b/osdep.h > index 75b5816..1cdc7e2 100644 > --- a/osdep.h > +++ b/osdep.h > @@ -95,6 +95,8 @@ int qemu_create_pidfile(const char *filename); > #ifdef _WIN32 > int ffs(int i); > > +int setenv(const char *name, const char *value, int overwrite); > + > typedef struct { > long tv_sec; > long tv_usec;
Please move this to qemu-os-win32.h instead, otherwise the build will fail on POSIX systems due to setenv being redefined. Thanks, Jes