From: Andrew Cooper Subject: [PATCH] stubdom/libxc: Fix build of unsafe decompressors Date: Fri, 14 Mar 2014 11:16:09 +0000 Message-ID: <1394795769-2037-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Keir Fraser , Ian Campbell , Andrew Cooper , Ian Jackson , Sander Eikelenboom , Jan Beulich List-Id: xen-devel@lists.xenproject.org c/s b683d68c386 changed the packing attribute on struct lzma_header. libxc includes the Xen decompression .c, (for stubdoms only) but without access to the Xen header files. Fix in the main header file for any potential change in Xen, rather than in for just lzma alone. Reported-by: Sander Eikelenboom Signed-off-by: Andrew Cooper CC: Keir Fraser CC: Jan Beulich CC: Ian Campbell CC: Ian Jackson --- tools/libxc/xc_dom_decompress_unsafe.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/libxc/xc_dom_decompress_unsafe.h b/tools/libxc/xc_dom_decompress_unsafe.h index 64f6886..66124a8 100644 --- a/tools/libxc/xc_dom_decompress_unsafe.h +++ b/tools/libxc/xc_dom_decompress_unsafe.h @@ -1,5 +1,7 @@ #include "xc_dom.h" +#define __packed __attribute__((packed)) + typedef int decompress_fn(unsigned char *inbuf, unsigned int len, int (*fill)(void*, unsigned int), int (*flush)(void*, unsigned int), -- 1.7.10.4