Reported on a GNU Hurd build of elfutils. This is a quick fix pending
my more complex patch to reduce dependency on linux perf concepts for
the libdwfl_stacktrace code.
* libdwfl_stacktrace/dwflst_perf_frame.c (perf_sample_regs_abi):
Define this Linux enum on non-Linux platforms.
#if defined(__linux__)
# include <linux/perf_event.h>
+#else
+/* XXX required by copy_word() below */
+enum perf_sample_regs_abi {
+ PERF_SAMPLE_REGS_ABI_NONE = 0,
+ PERF_SAMPLE_REGS_ABI_32 = 1,
+ PERF_SAMPLE_REGS_ABI_64 = 2,
+};
#endif
#include "libdwfl_stacktraceP.h"