diff options
author | Volker Lendecke <vl@samba.org> | 2014-09-17 00:25:38 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2014-09-18 20:36:11 +0200 |
commit | fb9067c789263d5e2fcc26adb46463b974ccdaae (patch) | |
tree | e4ef14e521e4d540c46f22b178d8b065e71fff89 /source3/lib/unix_msg | |
parent | 6a1c51ee80cb1920248d72dfc79130cb114adad3 (diff) | |
download | samba-fb9067c789263d5e2fcc26adb46463b974ccdaae.tar.gz samba-fb9067c789263d5e2fcc26adb46463b974ccdaae.tar.xz samba-fb9067c789263d5e2fcc26adb46463b974ccdaae.zip |
Remove a few #ifdef EWOULDBLOCk
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'source3/lib/unix_msg')
-rw-r--r-- | source3/lib/unix_msg/unix_msg.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/lib/unix_msg/unix_msg.c b/source3/lib/unix_msg/unix_msg.c index 00438cebfd..982ae46cd0 100644 --- a/source3/lib/unix_msg/unix_msg.c +++ b/source3/lib/unix_msg/unix_msg.c @@ -246,9 +246,7 @@ static void unix_dgram_recv_handler(struct poll_watch *w, int fd, short events, received = recvmsg(fd, &msg, 0); if (received == -1) { if ((errno == EAGAIN) || -#ifdef EWOULDBLOCK (errno == EWOULDBLOCK) || -#endif (errno == EINTR) || (errno == ENOMEM)) { /* Not really an error - just try again. */ return; @@ -496,11 +494,7 @@ static int unix_dgram_send(struct unix_dgram_ctx *ctx, if (ret >= 0) { return 0; } -#ifdef EWOULDBLOCK if ((errno != EWOULDBLOCK) && (errno != EAGAIN) && (errno != EINTR)) { -#else - if ((errno != EAGAIN) && (errno != EINTR)) { -#endif return errno; } |