diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2018-05-28 10:50:14 +0100 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2018-06-28 02:17:32 +0100 |
commit | 531dd85f60e3de8fd6deddc820f3f6a92d83186c (patch) | |
tree | f619f02325ab0f256d9c2a4e969f800bc18a1664 /vdagent | |
parent | b291e4ca14b611ad20cb93d90dc98c8a715b91f9 (diff) |
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
Diffstat (limited to 'vdagent')
-rw-r--r-- | vdagent/vdagent.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp index ca1f8fa..e22687c 100644 --- a/vdagent/vdagent.cpp +++ b/vdagent/vdagent.cpp @@ -55,10 +55,12 @@ static const VDClipboardFormat clipboard_formats[] = { #define clipboard_formats_count SPICE_N_ELEMENTS(clipboard_formats) -typedef struct ALIGN_VC VDIChunk { +#include <spice/start-packed.h> +typedef struct SPICE_ATTR_PACKED VDIChunk { VDIChunkHeader hdr; uint8_t data[0]; -} ALIGN_GCC VDIChunk; +} VDIChunk; +#include <spice/end-packed.h> #define VD_MESSAGE_HEADER_SIZE (sizeof(VDIChunk) + sizeof(VDAgentMessage)) #define VD_READ_BUF_SIZE (sizeof(VDIChunk) + VD_AGENT_MAX_DATA_SIZE) |