From c5307c69938620d4747b9bbc0d7625616f20e6a7 Mon Sep 17 00:00:00 2001 From: Xinliang David Li Date: Mon, 25 Jul 2016 23:12:53 +0000 Subject: [PATCH] Define compatibility flag if not defined with -std=c++ llvm-svn: 276708 --- compiler-rt/lib/profile/GCDAProfiling.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler-rt/lib/profile/GCDAProfiling.c b/compiler-rt/lib/profile/GCDAProfiling.c index 2ad7f45..138af6e 100644 --- a/compiler-rt/lib/profile/GCDAProfiling.c +++ b/compiler-rt/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__) -- 2.7.4