diff options
author | Stefan Weil <sw@weilnetz.de> | 2012-06-06 19:35:57 +0000 |
---|---|---|
committer | Stefan Weil <sw@weilnetz.de> | 2012-06-11 22:20:21 +0200 |
commit | acc55ba8b1519bda27be19fad50b65d2b0c7d26d (patch) | |
tree | 37485396734f0a11b785039b564a732329c68810 /configure | |
parent | fc9fa4bd0a295ac18808c4cd2cfac484bc4649d3 (diff) | |
download | qemu-acc55ba8b1519bda27be19fad50b65d2b0c7d26d.tar.gz qemu-acc55ba8b1519bda27be19fad50b65d2b0c7d26d.tar.bz2 qemu-acc55ba8b1519bda27be19fad50b65d2b0c7d26d.zip |
configure: Fix build for some versions of glibc (9pfs)
Some versions declare open_by_handle_at, but don't define AT_EMPTY_PATH.
Extend the check in configure to test both preconditions.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2812,7 +2812,11 @@ fi open_by_hande_at=no cat > $TMPC << EOF #include <fcntl.h> +#if !defined(AT_EMPTY_PATH) +# error missing definition +#else int main(void) { struct file_handle fh; return open_by_handle_at(0, &fh, 0); } +#endif EOF if compile_prog "" "" ; then open_by_handle_at=yes |