| ... | ... | @@ -35,6 +35,7 @@ |
| 35 | 35 | #include <shlobj.h> |
| 36 | 36 | #include <io.h> |
| 37 | 37 | #include <fcntl.h> |
| 38 | #include <ntsecapi.h> |
| 38 | 39 | |
| 39 | 40 | typedef SSIZE_T ssize_t; |
| 40 | 41 | #else |
| ... | ... | @@ -1402,7 +1403,7 @@ Error os_make_dir(Buf *path) { |
| 1402 | 1403 | |
| 1403 | 1404 | static void init_rand() { |
| 1404 | 1405 | #if defined(ZIG_OS_WINDOWS) |
| 1405 | | const char bytes[sizeof(unsigned)]; |
| 1406 | char bytes[sizeof(unsigned)]; |
| 1406 | 1407 | unsigned seed; |
| 1407 | 1408 | RtlGenRandom(bytes, sizeof(unsigned)); |
| 1408 | 1409 | memcpy(&seed, bytes, sizeof(unsigned)); |