summaryrefslogtreecommitdiff
path: root/devel/llvm20/files/patch-compiler-rt_lib_profile_InstrProfilingPlatformLinux.c
blob: 07ddc83e1d3fc61b7b94d4c4fd5420b918b53af1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- 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)