diff options
Diffstat (limited to 'sys/sys/socketvar.h')
-rw-r--r-- | sys/sys/socketvar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h index 6b715f2..6b22cfd 100644 --- a/sys/sys/socketvar.h +++ b/sys/sys/socketvar.h @@ -253,7 +253,7 @@ struct xsocket { * Returns error without lock if sleep is interrupted. */ #define sblock(sb, wf) ((sb)->sb_flags & SB_LOCK ? \ - (((wf) == 0) ? sb_lock(sb) : EWOULDBLOCK) : \ + (((wf) == M_WAITOK) ? sb_lock(sb) : EWOULDBLOCK) : \ ((sb)->sb_flags |= SB_LOCK), 0) /* release lock on sockbuf sb */ |