mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
There is no reason to #define fd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11190 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4bb2969393
commit
6c0398ed47
@ -72,10 +72,9 @@ static void *getMemory(unsigned NumBytes) {
|
||||
abort();
|
||||
#endif
|
||||
|
||||
int fd = -1;
|
||||
#if defined(__linux__)
|
||||
#define fd 0
|
||||
#else
|
||||
#define fd -1
|
||||
fd = 0;
|
||||
#endif
|
||||
|
||||
unsigned mmapFlags = MAP_PRIVATE|MAP_ANONYMOUS;
|
||||
|
Loading…
Reference in New Issue
Block a user