From 897f91039da9330bfbd8f326fd039f3d68f951a2 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Mon, 25 Jul 2016 23:12:53 +0000 Subject: 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 --- lib/profile/GCDAProfiling.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/profile/GCDAProfiling.c') 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 #include +#ifndef MAP_FILE +#define MAP_FILE 0 +#endif #endif #if defined(__FreeBSD__) && defined(__i386__) -- cgit v1.2.3