diff options
author | Xinliang David Li <davidxl@google.com> | 2016-07-25 23:12:53 +0000 |
---|---|---|
committer | Xinliang David Li <davidxl@google.com> | 2016-07-25 23:12:53 +0000 |
commit | 897f91039da9330bfbd8f326fd039f3d68f951a2 (patch) | |
tree | 589846c8b11ab5b1e6b5b81a7b9a55536e1b8b72 /lib/profile/GCDAProfiling.c | |
parent | 5d5ea7d104cb3ca5545b3d7eb1822b65c0671332 (diff) |
Define compatibility flag if not defined with -std=c++
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@276708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/GCDAProfiling.c')
-rw-r--r-- | lib/profile/GCDAProfiling.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/profile/GCDAProfiling.c b/lib/profile/GCDAProfiling.c index 2ad7f450c..138af6ec4 100644 --- a/lib/profile/GCDAProfiling.c +++ b/lib/profile/GCDAProfiling.c @@ -34,6 +34,9 @@ #else #include <sys/mman.h> #include <sys/file.h> +#ifndef MAP_FILE +#define MAP_FILE 0 +#endif #endif #if defined(__FreeBSD__) && defined(__i386__) |