summaryrefslogtreecommitdiff
path: root/lib/libpthread/uthread/uthread_recvfrom.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libpthread/uthread/uthread_recvfrom.c')
-rw-r--r--lib/libpthread/uthread/uthread_recvfrom.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_recvfrom.c b/lib/libpthread/uthread/uthread_recvfrom.c
index 5817832a43c..0c693de57a1 100644
--- a/lib/libpthread/uthread/uthread_recvfrom.c
+++ b/lib/libpthread/uthread/uthread_recvfrom.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uthread_recvfrom.c,v 1.6 2003/12/23 19:31:05 brad Exp $ */
+/* $OpenBSD: uthread_recvfrom.c,v 1.7 2006/09/22 19:04:33 kurt Exp $ */
/*
* Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au>
* All rights reserved.
@@ -51,7 +51,8 @@ recvfrom(int fd, void *buf, size_t len, int flags, struct sockaddr * from, sockl
if ((ret = _FD_LOCK(fd, FD_READ, NULL)) == 0) {
while ((ret = _thread_sys_recvfrom(fd, buf, len, flags, from, from_len)) < 0) {
- if (!(_thread_fd_table[fd]->flags & O_NONBLOCK) && ((errno == EWOULDBLOCK) || (errno == EAGAIN))) {
+ if (!(_thread_fd_table[fd]->status_flags->flags & O_NONBLOCK) &&
+ ((errno == EWOULDBLOCK) || (errno == EAGAIN))) {
curthread->data.fd.fd = fd;
/* Set the timeout: */