ports/devel/llvm14/files/patch-compiler-rt_lib_profile_InstrProfilingPlatformLinux.c
Brooks Davis 6b85c3b08b devel/llvm14: bootstrap from llvm13
devel/llvm14 now contains an exact copy of devel/llvm13.  The next commit
wil update it to llvm14 and connect it to the build.
2022-02-10 18:13:01 +00:00

13 lines
480 B
C

--- compiler-rt/lib/profile/InstrProfilingPlatformLinux.c.orig
+++ compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
@@ -17,6 +17,10 @@
#include "InstrProfiling.h"
#include "InstrProfilingInternal.h"
+#if !defined(ElfW)
+#define ElfW(type) Elf_##type
+#endif
+
#define PROF_DATA_START INSTR_PROF_SECT_START(INSTR_PROF_DATA_COMMON)
#define PROF_DATA_STOP INSTR_PROF_SECT_STOP(INSTR_PROF_DATA_COMMON)
#define PROF_NAME_START INSTR_PROF_SECT_START(INSTR_PROF_NAME_COMMON)