From 81b33e381f12cf2dc3e034fc81ba43fc55e12fce Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 18 Oct 2018 12:39:55 -0500 Subject: [PATCH] compat/freebsd11_network: Add arm/mips ALIGNED_POINTER Change-Id: I39fc6a13bafcb329663e49bf2b0d86edcb795cfa --- src/libs/compat/freebsd11_network/compat/sys/param.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/compat/freebsd11_network/compat/sys/param.h b/src/libs/compat/freebsd11_network/compat/sys/param.h index cdcc601338..99e180e59e 100644 --- a/src/libs/compat/freebsd11_network/compat/sys/param.h +++ b/src/libs/compat/freebsd11_network/compat/sys/param.h @@ -53,6 +53,10 @@ #define ALIGNED_POINTER(p, t) 1 #elif defined(__powerpc__) #define ALIGNED_POINTER(p, t) ((((uintptr_t)(p)) & (sizeof (t) - 1)) == 0) +#elif defined(__arm__) +#define ALIGNED_POINTER(p, t) ((((unsigned)(p)) & (sizeof(t) - 1)) == 0) +#elif defined(__mips__) +#define ALIGNED_POINTER(p, t) ((((unsigned long)(p)) & (sizeof (t) - 1)) == 0) #else #error Need definition of ALIGNED_POINTER for this arch! #endif