[qwaq] Ensure qwaq_event_t's when is aligned

While qfcc will always align double values to 8 bytes (really, two
global words) regardless of the underlying hardware, gcc does not:
doubles are only 4-byte aligned on 32-bit hardware.

This fixes the invalid debug target handle when running on i686.
This commit is contained in:
Bill Currie 2021-05-29 23:42:29 +09:00
parent 0293167bd2
commit 73cffe283a

View file

@ -68,6 +68,7 @@ typedef union qwaq_message_s {
typedef struct qwaq_event_s {
int what;
int __pad;
double when; // NOTE: 1<<32 based
union {
qwaq_kevent_t key;