From: Stefan Weil Date: Wed, 6 Jun 2012 19:35:57 +0000 (+0000) Subject: configure: Fix build for some versions of glibc (9pfs) X-Git-Tag: v1.1.1~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f6db26e4f8fe6d80e17aa62e6bcc465e323a7fee;p=thirdparty%2Fqemu.git 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 Acked-by: Stefano Stabellini Acked-by: Serge Hallyn (cherry picked from commit acc55ba8b1519bda27be19fad50b65d2b0c7d26d) Signed-off-by: Michael Roth --- diff --git a/configure b/configure index 268ed21b69b..72d16a495b1 100755 --- a/configure +++ b/configure @@ -2811,7 +2811,11 @@ fi open_by_hande_at=no cat > $TMPC << EOF #include +#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