]> granicus.if.org Git - strace/commit
tests: fix uio building w/out preadv/pwritev
authorMike Frysinger <vapier@gentoo.org>
Mon, 11 Aug 2014 06:52:08 +0000 (02:52 -0400)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 11 Aug 2014 17:30:01 +0000 (17:30 +0000)
commit97ca0277b3380ec4e30220fbfa32a9f4d3aa6961
treea2e880c3c379e616dd3f2bd705ed8a94f71069bd
parentb267aef27f17ec0162bdf76fd8ad2b07782b8eab
tests: fix uio building w/out preadv/pwritev

The preadv/pwritev symbols weren't added to glibc until the 2.10 release,
so trying to build the uio test leads to link failures.  Add configure
tests and update uio.test to handle this.

* configure.ac (AC_CHECK_FUNCS): Add preadv/pwritev.
* tests/uio.c: Include config.h.
(main): Check for HAVE_PREADV and HAVE_PWRITEV.
* tests/uio.test: Check exit status of uio helper.
configure.ac
tests/uio.c
tests/uio.test