projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
463a719
)
[Support] Add missing include.
author
Daniel Dunbar
<daniel@zuster.org>
Sat, 5 May 2012 16:49:11 +0000
(16:49 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Sat, 5 May 2012 16:49:11 +0000
(16:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156240
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Process.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/Process.cpp
b/lib/Support/Process.cpp
index c65cb454046b2c03f5090ed82d02fadaa7309165..2cff1cebe51f79f98cb8d519622f2a751d58e50f 100644
(file)
--- 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
}