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>
(cherry picked from commit acc55ba8b1
)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
This commit is contained in:
parent
c49dd1bf64
commit
f6db26e4f8
|
@ -2811,7 +2811,11 @@ fi
|
||||||
open_by_hande_at=no
|
open_by_hande_at=no
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
#include <fcntl.h>
|
#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); }
|
int main(void) { struct file_handle fh; return open_by_handle_at(0, &fh, 0); }
|
||||||
|
#endif
|
||||||
EOF
|
EOF
|
||||||
if compile_prog "" "" ; then
|
if compile_prog "" "" ; then
|
||||||
open_by_handle_at=yes
|
open_by_handle_at=yes
|
||||||
|
|
Loading…
Reference in New Issue