From d3a6abe9207a3ebd7c4b96d1a80827bf702a4131 Mon Sep 17 00:00:00 2001 From: PulkoMandy Date: Sun, 24 Feb 2019 10:19:48 +0100 Subject: [PATCH] sparc: freebsd_network defines Change-Id: Ib668c69d6b506c6efaeb50d0a3e4784f836ce61a Reviewed-on: https://review.haiku-os.org/c/1105 Reviewed-by: waddlesplash --- src/libs/compat/freebsd_network/compat/sys/param.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libs/compat/freebsd_network/compat/sys/param.h b/src/libs/compat/freebsd_network/compat/sys/param.h index 1d03ac8374..83e47ad205 100644 --- a/src/libs/compat/freebsd_network/compat/sys/param.h +++ b/src/libs/compat/freebsd_network/compat/sys/param.h @@ -55,14 +55,15 @@ #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__) +#elif defined(__mips__) || defined(__sparc__) #define ALIGNED_POINTER(p, t) ((((unsigned long)(p)) & (sizeof (t) - 1)) == 0) #else #error Need definition of ALIGNED_POINTER for this arch! #endif /* defined in arch_cpu.h which we can't include here as it's C++ */ -#if defined(__x86_64__) || defined(__i386__) || defined(__arm__) +#if defined(__x86_64__) || defined(__i386__) || defined(__arm__) \ + || defined(__sparc__) #define CACHE_LINE_SIZE 64 #else #error Need definition of CACHE_LINE_SIZE for this arch!