From 431b3b245959830ac385dd162b779a78c93b1c2d Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 7 Mar 2019 13:32:43 -0500 Subject: [PATCH] fix windows build --- src/os.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/os.cpp b/src/os.cpp index 355f9167c1b4514e446b36d307cd84bf9c834b76..c50fb7188459d259b9e92124121d5de4a7d56f39 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -35,6 +35,7 @@ #include #include #include +#include typedef SSIZE_T ssize_t; #else @@ -1402,7 +1403,7 @@ Error os_make_dir(Buf *path) { static void init_rand() { #if defined(ZIG_OS_WINDOWS) - const char bytes[sizeof(unsigned)]; + char bytes[sizeof(unsigned)]; unsigned seed; RtlGenRandom(bytes, sizeof(unsigned)); memcpy(&seed, bytes, sizeof(unsigned)); -- 2.54.0