mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-02 04:39:35 +00:00
[Support] Add missing include.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156240 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
463a719d36
commit
c94e593060
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include "llvm/Support/Process.h"
|
#include "llvm/Support/Process.h"
|
||||||
#include "llvm/Config/config.h"
|
#include "llvm/Config/config.h"
|
||||||
|
#include <cstdlib>
|
||||||
|
|
||||||
namespace llvm {
|
namespace llvm {
|
||||||
using namespace sys;
|
using namespace sys;
|
||||||
@ -27,7 +28,7 @@ unsigned llvm::sys::Process::GetRandomNumber() {
|
|||||||
return arc4random();
|
return arc4random();
|
||||||
#else
|
#else
|
||||||
static int x = (::srand(::time(NULL)), 0);
|
static int x = (::srand(::time(NULL)), 0);
|
||||||
return rand();
|
return ::rand();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user