diff options
author | 2012-08-20 12:45:08 -0600 | |
---|---|---|
committer | 2012-12-13 15:31:59 -0600 | |
commit | 324b4a36a577e0a998b2f78b8ed4a5c5e3c1f9eb (patch) | |
tree | 88832cd946e3ebede77c9b9d4449130ad7c27160 | |
parent | target-openrisc: remove conflicting definitions from cpu.h (diff) | |
download | qemu-kvm-324b4a36a577e0a998b2f78b8ed4a5c5e3c1f9eb.tar.gz qemu-kvm-324b4a36a577e0a998b2f78b8ed4a5c5e3c1f9eb.tar.bz2 qemu-kvm-324b4a36a577e0a998b2f78b8ed4a5c5e3c1f9eb.zip |
configure: avoid compiler warning in pipe2 detection
When building qemu-kvm for openSUSE:Factory, I am getting a
warning in the pipe2 detection performed by configure, which
prevents using --enable-werror.
Change detection code to use return value of pipe2.
Signed-off-by: Bruce Rogers <brogers@suse.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
(cherry picked from commit 9bca81624ef9299b9a06013fd29cd6899079aab4)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
(cherry picked from commit ea79e157c61eb20e1065836f9d2719ffef91b8cf)
-rwxr-xr-x | configure | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -2399,8 +2399,7 @@ cat > $TMPC << EOF int main(void) { int pipefd[2]; - pipe2(pipefd, O_CLOEXEC); - return 0; + return pipe2(pipefd, O_CLOEXEC); } EOF if compile_prog "" "" ; then |