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 355f9167c1..c50fb71884 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));