From ec1ed0f99aa6fe8873529e8c03c6879482440e63 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 11 Nov 2016 09:53:14 +0000 Subject: [PATCH] Nested structures must also be explicitly packed with GCC. --- src/smblib/smbdefs.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/smblib/smbdefs.h b/src/smblib/smbdefs.h index d4f097848c..ccbcb2bd6e 100644 --- a/src/smblib/smbdefs.h +++ b/src/smblib/smbdefs.h @@ -442,12 +442,12 @@ typedef struct _PACK { /* Time with time-zone */ typedef struct _PACK { /* Index record */ union { - struct { + struct _PACK { uint16_t to; /* 16-bit CRC of recipient name (lower case) or user # */ uint16_t from; /* 16-bit CRC of sender name (lower case) or user # */ uint16_t subj; /* 16-bit CRC of subject (lower case, w/o RE:) */ }; - struct { + struct _PACK { uint16_t vote; /* vote value */ uint32_t remsg; /* number of message this vote is in response to */ }; -- GitLab