NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/58678: ntpd crashes on sparc64



> On Sep 19, 2024, at 1:25 PM, Martin Husemann via gnats <gnats-admin%NetBSD.org@localhost> wrote:
> 
> +#if defined(_LP64_) && (defined(__sparc__) || defined(__mips__) \
> + || defined(__powerpc__))
> +#define V4_SIZEOF_RESTRICT_U sizeof(restrict_u)
> +#define V6_SIZEOF_RESTRICT_U sizeof(restrict_u)
> +#else
>  #define V4_SIZEOF_RESTRICT_U (offsetof(restrict_u, u) \
>    + sizeof(res_addr4))
>  #define V6_SIZEOF_RESTRICT_U (offsetof(restrict_u, u) \
>    + sizeof(res_addr6))
> +#endif

Rather than listing architectures, what about keying off of __NO_STRICT_ALIGNMENT?

-- thorpej



Home | Main Index | Thread Index | Old Index