diff --git a/pkg/libb2/include/config.h b/pkg/libb2/include/config.h index 55cc6a0e8e..75e6d3aeb4 100644 --- a/pkg/libb2/include/config.h +++ b/pkg/libb2/include/config.h @@ -1,6 +1,8 @@ #ifndef CONFIG_H #define CONFIG_H +#include "cpu.h" + #ifdef __cplusplus extern "C" { #endif @@ -13,6 +15,10 @@ extern "C" { #define NATIVE_LITTLE_ENDIAN #endif +#ifndef CPU_HAS_UNALIGNED_ACCESS +#define HAVE_ALIGNED_ACCESS_REQUIRED +#endif + #ifdef __cplusplus } #endif