summaryrefslogtreecommitdiffstats
path: root/contrib/sendmail/libsm/local.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/sendmail/libsm/local.h')
-rw-r--r--contrib/sendmail/libsm/local.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/sendmail/libsm/local.h b/contrib/sendmail/libsm/local.h
index 8532ad8..304a52e 100644
--- a/contrib/sendmail/libsm/local.h
+++ b/contrib/sendmail/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; \
OpenPOWER on IntegriCloud