See if this fixes the crashes on the OpenCSW SPARC buildbots. If so, it
means that the compiler may think that even structures made up of
nothing but bytes (char/unsigned char) and arrays of bytes are aligned,
even if there's no guarantee of that.
(Bad compiler! No biscuit!)
struct l_fixedpt {
nd_uint32_t int_part;
nd_uint32_t fraction;
-};
+} UNALIGNED;
struct s_fixedpt {
nd_uint16_t int_part;
nd_uint16_t fraction;
-};
+} UNALIGNED;
/* rfc2030
* 1 2 3
struct l_fixedpt xmt_timestamp;
nd_uint32_t key_id;
nd_uint8_t message_digest[20];
-};
+} UNALIGNED;
/*
* Leap Second Codes (high order two bits)
*/
nd_uint16_t offset; /* Offset */
nd_uint16_t count; /* Count */
nd_uint8_t data[564]; /* Data, [Padding, [Authenticator]] */
-};
+} UNALIGNED;
/*
* Print NTP time requests and responses