mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-18 23:52:14 -06:00
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>
This commit is contained in:
parent
c1556a812a
commit
9bca81624e
1 changed files with 1 additions and 2 deletions
3
configure
vendored
3
configure
vendored
|
@ -2399,8 +2399,7 @@ cat > $TMPC << EOF
|
||||||
int main(void)
|
int main(void)
|
||||||
{
|
{
|
||||||
int pipefd[2];
|
int pipefd[2];
|
||||||
pipe2(pipefd, O_CLOEXEC);
|
return pipe2(pipefd, O_CLOEXEC);
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
if compile_prog "" "" ; then
|
if compile_prog "" "" ; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue