aboutsummaryrefslogtreecommitdiff
path: root/libsm/local.h
diff options
context:
space:
mode:
authorGregory Neil Shapiro <gshapiro@FreeBSD.org>2014-12-12 04:10:50 +0000
committerGregory Neil Shapiro <gshapiro@FreeBSD.org>2014-12-12 04:10:50 +0000
commitba87e25c2ed9c00232180c4aad967d617f816283 (patch)
tree478852bc9e3903f605e5e0b46c9b5bdf0d2aab7c /libsm/local.h
parent4a67213fda7a17ff204a52fc800a87333e14f7db (diff)
downloadsrc-ba87e25c2ed9c00232180c4aad967d617f816283.tar.gz
src-ba87e25c2ed9c00232180c4aad967d617f816283.zip
Notes
Diffstat (limited to 'libsm/local.h')
-rw-r--r--libsm/local.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsm/local.h b/libsm/local.h
index 8532ad8db6b6..304a52e292ce 100644
--- a/libsm/local.h
+++ b/libsm/local.h
@@ -20,6 +20,7 @@
*/
#include <sm/time.h>
+#include <sm/fdset.h>
#if !SM_CONF_MEMCHR
# include <memory.h>
#endif /* !SM_CONF_MEMCHR */
@@ -244,7 +245,7 @@ int sm_flags __P((int));
sm_io_to.tv_sec = (to) / 1000; \
sm_io_to.tv_usec = ((to) - (sm_io_to.tv_sec * 1000)) * 1000; \
} \
- if (FD_SETSIZE > 0 && (fd) >= FD_SETSIZE) \
+ if (!SM_FD_OK_SELECT(fd)) \
{ \
errno = EINVAL; \
return SM_IO_EOF; \