Hello,

The configure test for accept4() fails on armv7l host.

# check if accept4 is there
accept4=no
cat > $TMPC << EOF
#include <sys/socket.h>
#include <stddef.h>

int main(void)
{
    accept4(0, NULL, NULL, SOCK_CLOEXEC);
    return 0;
}
EOF
if compile_prog "" "" ; then
  accept4=yes
fi

It succeeds and sets CONFIG_ACCEPT4, but linking against it generates warnings:

osdep.o: In function `qemu_accept':
/.../osdep.c:157: warning: warning: accept4 is not implemented and will always fail

IIUC it should drop back to accept()+qemu_set_cloexec() in that case, so it's not critical, but if someone happens to know how to fix the test that would be appreciated.

Regards,
Andreas

Reply via email to