summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-18 21:13:53 -0400
committerAnthony G. Basile <blueness@gentoo.org>2015-03-18 21:13:53 -0400
commitc45230b3b0874ba256274116ca1cb7e1fd0f04c3 (patch)
tree1e8a6ce11d4c0a1f39e89530d28c49eeac9105b5 /src/shared
parentf5625ab8c611f71a74630c33bfe5ecfe75458f9a (diff)
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>
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/util.c3
1 files changed, 3 insertions, 0 deletions
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;