From 9138dce3671e145d78ba9669a967402882421547 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20D=C3=B6singer?= <stefan@codeweavers.com> Date: Thu, 19 Dec 2013 15:11:38 +0100 Subject: [PATCH] libport: Include stdlib.h on MSVC for getenv. --- libs/port/getopt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/port/getopt.c b/libs/port/getopt.c index fb1e315c8c6..7c97192f4ec 100644 --- a/libs/port/getopt.c +++ b/libs/port/getopt.c @@ -73,6 +73,8 @@ contain conflicting prototypes for getopt. */ # include <stdlib.h> # include <unistd.h> +#elif defined _MSC_VER +# include <stdlib.h> #endif /* GNU C library. */ #ifdef VMS -- GitLab