summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorJan Vesely <jano.vesely@gmail.com>2016-04-29 13:15:23 -0400
committerTimothy Pearson <tpearson@raptorengineering.com>2019-11-29 20:03:50 -0600
commitd9ecd153301ebd819fb533c773e232b6d5551bab (patch)
tree8752d62a7964e4d6b091b435f61bf11712cf3b1d /hw
parentbdbd9396d00213ecddb430cf10164f45eaad0116 (diff)
downloadhqemu-d9ecd153301ebd819fb533c773e232b6d5551bab.zip
hqemu-d9ecd153301ebd819fb533c773e232b6d5551bab.tar.gz
configure: Check if struct fsxattr is available from linux header
Fixes build failure with --enable-xfsctl and new linux headers (>=4.5) and older xfsprogs(<4.5): In file included from /usr/include/xfs/xfs.h:38:0, from /var/tmp/portage/app-emulation/qemu-2.5.0-r1/work/qemu-2.5.0/block/raw-posix.c:97: /usr/include/xfs/xfs_fs.h:42:8: error: redefinition of ‘struct fsxattr’ struct fsxattr { ^ In file included from /var/tmp/portage/app-emulation/qemu-2.5.0-r1/work/qemu-2.5.0/block/raw-posix.c:60:0: /usr/include/linux/fs.h:155:8: note: originally defined here struct fsxattr { This is really a bug in the system headers, but we can work around it by defining HAVE_FSXATTR in the QEMU headers if linux/fs.h provides the struct, so that xfs_fs.h doesn't try to define it as well. CC: qemu-trivial@nongnu.org CC: Markus Armbruster <armbru@redhat.com> CC: Peter Maydell <peter.maydell@linaro.org> CC: Stefan Weil <sw@weilnetz.de> Tested-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Jan Vesely <jano.vesely@gmail.com> [PMM: adjusted commit message, comments] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud