--- xen-4.9.0/tools/qemu-xen/hw/9pfs/9p.c.orig +++ xen-4.9.0/tools/qemu-xen/hw/9pfs/9p.c @@ -25,6 +25,10 @@ #include "trace.h" #include "migration/migration.h" +#ifdef __linux__ +#include /* for XATTR_SIZE_MAX */ +#endif + int open_fd_hw; int total_open_fd; static int open_fd_rc;