Check that EWOULDBLOCK is the same as EAGAIN

It certainly is everywhere on Linux, but as a courtesy
to people doing some strange cross-compilation, check
that the assumption holds.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2015-03-18 21:13:53 -04:00 committed by Anthony G. Basile
parent f5625ab8c6
commit c45230b3b0

View File

@ -70,6 +70,9 @@
#include "fileio.h"
#include "virt.h"
/* Put this test here for a lack of better place */
assert_cc(EAGAIN == EWOULDBLOCK);
int saved_argc = 0;
char **saved_argv = NULL;