We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cc1cc41 + 440d971 commit af6ce56Copy full SHA for af6ce56
compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
@@ -17,6 +17,15 @@
17
#include "InstrProfiling.h"
18
#include "InstrProfilingInternal.h"
19
20
+#if defined(__FreeBSD__) && !defined(ElfW)
21
+/*
22
+ * FreeBSD's elf.h and link.h headers do not define the ElfW(type) macro yet.
23
+ * If this is added to all supported FreeBSD versions in the future, this
24
+ * compatibility macro can be removed.
25
+ */
26
+#define ElfW(type) __ElfN(type)
27
+#endif
28
+
29
#define PROF_DATA_START INSTR_PROF_SECT_START(INSTR_PROF_DATA_COMMON)
30
#define PROF_DATA_STOP INSTR_PROF_SECT_STOP(INSTR_PROF_DATA_COMMON)
31
#define PROF_NAME_START INSTR_PROF_SECT_START(INSTR_PROF_NAME_COMMON)
0 commit comments