From fb64b2ae0e198dde58112cc1d4eea52279b31907 Mon Sep 17 00:00:00 2001 From: Danilo Spinella Date: Tue, 21 Apr 2020 12:17:41 +0200 Subject: [PATCH] Add __ELF_NATIVE_CLASS to musl systems --- src/elfhacks.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/elfhacks.cpp b/src/elfhacks.cpp index 48ebfe6d..eaf3342a 100644 --- a/src/elfhacks.cpp +++ b/src/elfhacks.cpp @@ -19,6 +19,11 @@ #include #include "elfhacks.h" +#ifndef __ELF_NATIVE_CLASS +#include "sys/reg.h" +#define __ELF_NATIVE_CLASS __WORDSIZE +#endif + /** * \addtogroup elfhacks * \{