projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be7e131
)
Check that EWOULDBLOCK is the same as EAGAIN
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Sat, 14 Mar 2015 02:10:19 +0000
(21:10 -0500)
committer
Zbigniew 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
patch
|
blob
|
history
diff --git
a/src/shared/util.c
b/src/shared/util.c
index
845c7ea
..
1994c7e
100644
(file)
--- 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;