From 012d7b4217420163db5752a63da6cab39d25edf3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 13 Mar 2015 21:10:19 -0500 Subject: [PATCH] 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. --- src/shared/util.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/shared/util.c b/src/shared/util.c index 845c7ea91..1994c7e05 100644 --- a/src/shared/util.c +++ b/src/shared/util.c @@ -94,6 +94,9 @@ #include "def.h" #include "sparse-endian.h" +/* Put this test here for a lack of better place */ +assert_cc(EAGAIN == EWOULDBLOCK); + int saved_argc = 0; char **saved_argv = NULL; -- 2.30.2