--- libaitrpc/inc/aitrpc_pkt.h 2015/07/02 22:28:14 1.2 +++ libaitrpc/inc/aitrpc_pkt.h 2016/08/08 13:21:13 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitrpc_pkt.h,v 1.2 2015/07/02 22:28:14 misho Exp $ +* $Id: aitrpc_pkt.h,v 1.3 2016/08/08 13:21:13 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -113,7 +113,7 @@ typedef struct { uint16_t sess_version:8; uint16_t sess_instance:8; #endif -} __packed rpc_sess_t; /* size == 2 bytes */ +} __attribute__((packed)) rpc_sess_t; /* size == 2 bytes */ /* Network RPC packet - Header */ @@ -152,7 +152,7 @@ struct tagBLOBHdr { uint32_t hdr_len; uint32_t hdr_ret; uint8_t hdr_pad; -} __packed; /* size == 16 bytes */ +} __attribute__((packed)); /* size == 16 bytes */ #define RPC_SET_BLOB_RET(x, _v) ((x)->hdr_ret = (uint32_t) htonl((_v))) /* RPC BLOB types */