From acc55ba8b1519bda27be19fad50b65d2b0c7d26d Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Wed, 6 Jun 2012 19:35:57 +0000 Subject: 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 --- configure | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure') diff --git a/configure b/configure index c2366eef45..5d73c82563 100755 --- a/configure +++ b/configure @@ -2812,7 +2812,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 -- cgit v1.2.3