Try to unbreak the mingw32 build.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 7 Feb 2014 12:05:36 +0000 (12:05 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 7 Feb 2014 12:05:36 +0000 (12:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200973 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Windows/Process.inc

index 16e4092e9faf5b3ab2d5ac9921ba26f780b01dc4..62b6da0cb1bee8f4bab60993da30cc1b544692c5 100644 (file)
@@ -363,7 +363,7 @@ const char *Process::ResetColor() {
 
 unsigned Process::GetRandomNumber() {
   unsigned int result;
-  const errno_t ec = rand_s(&result);
+  const int ec = rand_s(&result);
   assert(ec == 0 && "rand_s failed");
   return result;
 }