diff options
author | Vedant Kumar <vsk@apple.com> | 2017-12-14 18:43:14 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2017-12-14 18:43:14 +0000 |
commit | f6d0ce49a30c2b40d69369cd799f76f95c052b0e (patch) | |
tree | 61f3a8d1a8ca64da7a1b2a865f11acdc5c1f9926 /lib/profile/WindowsMMap.c | |
parent | 59d71591dacb24a35bd1f52b60fb0dd221412ac4 (diff) |
[profile] Port the runtime to Solaris
This includes a few nice bits of refactoring (e.g splitting out the
exclusive locking code into a common utility).
Patch by Rainer Orth!
Differential Revision: https://reviews.llvm.org/D40944
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@320726 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/WindowsMMap.c')
-rw-r--r-- | lib/profile/WindowsMMap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/profile/WindowsMMap.c b/lib/profile/WindowsMMap.c index 0c534710b..dc87a888a 100644 --- a/lib/profile/WindowsMMap.c +++ b/lib/profile/WindowsMMap.c @@ -18,11 +18,12 @@ #if defined(_WIN32) #include "WindowsMMap.h" -#include "InstrProfiling.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> +#include "InstrProfiling.h" + #ifdef __USE_FILE_OFFSET64 # define DWORD_HI(x) (x >> 32) # define DWORD_LO(x) ((x) & 0xffffffff) |