chiark / gitweb /
Check that EWOULDBLOCK is the same as EAGAIN
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 14 Mar 2015 02:10:19 +0000 (21:10 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sat, 14 Mar 2015 03:42:17 +0000 (23:42 -0400)
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

index 845c7ea91ad98c3818e9b2a626298fb5c6baa62d..1994c7e05d0923036bb51de3796986dd78597f79 100644 (file)
@@ -94,6 +94,9 @@
 #include "def.h"
 #include "sparse-endian.h"
 
 #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;
 
 int saved_argc = 0;
 char **saved_argv = NULL;