From bf9298b90eee0b95cab11fc74790dcbddca4252e Mon Sep 17 00:00:00 2001 From: aliguori Date: Fri, 5 Dec 2008 20:05:26 +0000 Subject: Make struct iovec universally available Vectored IO APIs will require some sort of vector argument. It makes sense to use struct iovec and just define it globally for Windows. Signed-off-by: Anthony Liguori git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5889 c046a42c-6fe2-441c-8c8c-71466251a162 --- configure | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'configure') diff --git a/configure b/configure index 7f82786..938a53f 100755 --- a/configure +++ b/configure @@ -1017,6 +1017,17 @@ EOF fi fi +########################################## +# iovec probe +cat > $TMPC < +int main(void) { struct iovec iov; return 0; } +EOF +iovec=no +if $cc $ARCH_CFLAGS -o $TMPE $TMPC 2> /dev/null ; then + iovec=yes +fi + # Check if tools are available to build documentation. if [ -x "`which texi2html 2>/dev/null`" ] && \ [ -x "`which pod2man 2>/dev/null`" ]; then @@ -1376,6 +1387,9 @@ fi if test "$blobs" = "yes" ; then echo "INSTALL_BLOBS=yes" >> $config_mak fi +if test "$iovec" = "yes" ; then + echo "#define HAVE_IOVEC 1" >> $config_h +fi # XXX: suppress that if [ "$bsd" = "yes" ] ; then -- cgit v1.1