summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorAneesh Kumar K.V2011-10-25 08:40:39 +0200
committerAneesh Kumar K.V2011-10-31 08:04:15 +0100
commit15329e8338d5bb2b69e177d5ab4e01b8c1e488ff (patch)
tree8ff86b667f357ffdbd18c1397b34e3e394bf609e /configure
parenthw/9pfs: Fix error handling in local_mknod (diff)
downloadqemu-15329e8338d5bb2b69e177d5ab4e01b8c1e488ff.tar.gz
qemu-15329e8338d5bb2b69e177d5ab4e01b8c1e488ff.tar.xz
qemu-15329e8338d5bb2b69e177d5ab4e01b8c1e488ff.zip
configure: Update configure so that open_by_handle_at check returns correct value
According to David Gibson for some compiler/libc combinations, open_by_handle_at test in configure isn't quite right: because the file_handle pointer is never dereferenced, gcc doesn't complain even if it is undefined. Change the test as suggested by him. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 4f87e0a43b..19e83943cf 100755
--- a/configure
+++ b/configure
@@ -2562,7 +2562,7 @@ fi
open_by_hande_at=no
cat > $TMPC << EOF
#include <fcntl.h>
-int main(void) { struct file_handle *fh; open_by_handle_at(0, fh, 0); }
+int main(void) { struct file_handle fh; open_by_handle_at(0, &fh, 0); }
EOF
if compile_prog "" "" ; then
open_by_handle_at=yes