From c45230b3b0874ba256274116ca1cb7e1fd0f04c3 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Wed, 18 Mar 2015 21:13:53 -0400 Subject: 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 --- src/shared/util.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/shared/util.c') diff --git a/src/shared/util.c b/src/shared/util.c index d1fd3c80f3..3ae73b944b 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -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; -- cgit v1.2.3-54-g00ecf