qemu: fix include issues, closed FS#1001

This commit is contained in:
Thomas Penteker 2014-03-24 18:29:53 +01:00
parent 4080ca9752
commit 29ef8fa0c0

View File

@ -22,6 +22,11 @@ build() {
--localstatedir=/var \
--target-list=x86_64-linux-user,i386-linux-user,i386-softmmu,x86_64-softmmu
# fix include issues with libcap
sed -i -e '/#include "qemu\/xattr.h"/d' \
-e 's|#include <sys/resource.h>|#include <sys/resource.h>\r\n#include "qemu\/xattr.h"|g' \
fsdev/virtfs-proxy-helper.c
# fix include issues with nspr
echo 'QEMU_CFLAGS+=-I/usr/include/nspr' >> libcacard/Makefile
make ${MAKEFLAGS:=}