[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] stubdom/libxc: Fix build of unsafe decompressors

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 <linux@xxxxxxxxxxxxxx>
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CC: Keir Fraser <keir@xxxxxxx>
CC: Jan Beulich <JBeulich@xxxxxxxx>
CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
 tools/libxc/xc_dom_decompress_unsafe.h |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/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),

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.