diff options
author | Daniel Dunbar <daniel@zuster.org> | 2012-05-05 16:49:11 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2012-05-05 16:49:11 +0000 |
commit | c94e593060bd2efb86a4e38c7df8888a01fa7f79 (patch) | |
tree | ca93c142a39d674acea7c5712f914fb55d822832 /lib/Support/Process.cpp | |
parent | 463a719d36fe8909377e839706fb49ed9103eba2 (diff) |
[Support] Add missing include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156240 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Process.cpp')
-rw-r--r-- | lib/Support/Process.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Support/Process.cpp b/lib/Support/Process.cpp index c65cb45404..2cff1cebe5 100644 --- a/lib/Support/Process.cpp +++ b/lib/Support/Process.cpp @@ -13,6 +13,7 @@ #include "llvm/Support/Process.h" #include "llvm/Config/config.h" +#include <cstdlib> namespace llvm { using namespace sys; @@ -27,7 +28,7 @@ unsigned llvm::sys::Process::GetRandomNumber() { return arc4random(); #else static int x = (::srand(::time(NULL)), 0); - return rand(); + return ::rand(); #endif } |