[compiler-rt] r276708 - Define compatibility flag if not defined with -std=c++

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 25 16:12:53 PDT 2016


Author: davidxl
Date: Mon Jul 25 18:12:53 2016
New Revision: 276708

URL: http://llvm.org/viewvc/llvm-project?rev=276708&view=rev
Log:
Define compatibility flag if not defined with -std=c++

Modified:
    compiler-rt/trunk/lib/profile/GCDAProfiling.c

Modified: compiler-rt/trunk/lib/profile/GCDAProfiling.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/GCDAProfiling.c?rev=276708&r1=276707&r2=276708&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/GCDAProfiling.c (original)
+++ compiler-rt/trunk/lib/profile/GCDAProfiling.c Mon Jul 25 18:12:53 2016
@@ -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__)




More information about the llvm-commits mailing list