diff --git a/src/smblib/smbdefs.h b/src/smblib/smbdefs.h
index d4f097848c436b9511691fbb0506d4d70fc67c14..ccbcb2bd6e91f42b0ff9deb06b0961e68f87ac45 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 */
 		};