From: Zbigniew Jędrzejewski-Szmek Date: Sat, 14 Mar 2015 02:10:19 +0000 (-0500) Subject: Check that EWOULDBLOCK is the same as EAGAIN X-Git-Tag: v219.0~341 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=012d7b4217420163db5752a63da6cab39d25edf3 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. --- 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;