NetBSD-Bugs archive

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

Re: bin/58678: ntpd crashes on sparc64



The following reply was made to PR bin/58678; it has been noted by GNATS.

From: Jason Thorpe <thorpej%me.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: gnats-admin%netbsd.org@localhost,
 netbsd-bugs%netbsd.org@localhost,
 "martin%netbsd.org@localhost" <martin%NetBSD.org@localhost>
Subject: Re: bin/58678: ntpd crashes on sparc64
Date: Thu, 19 Sep 2024 13:40:37 -0700

 > On Sep 19, 2024, at 1:25=E2=80=AFPM, Martin Husemann via gnats =
 <gnats-admin%NetBSD.org@localhost> wrote:
 >=20
 > +#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