summaryrefslogtreecommitdiffstats
path: root/libsm/refill.c
diff options
context:
space:
mode:
Diffstat (limited to 'libsm/refill.c')
-rw-r--r--libsm/refill.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libsm/refill.c b/libsm/refill.c
index 43eee97..e13c831 100644
--- a/libsm/refill.c
+++ b/libsm/refill.c
@@ -25,6 +25,7 @@ SM_RCSID("@(#)$Id: refill.c,v 1.54 2013-11-22 20:51:43 ca Exp $")
#include <sm/io.h>
#include <sm/conf.h>
#include <sm/assert.h>
+#include <sm/fdset.h>
#include "local.h"
static int sm_lflush __P((SM_FILE_T *, int *));
@@ -65,7 +66,7 @@ static int sm_lflush __P((SM_FILE_T *, int *));
errno = EAGAIN; \
return SM_IO_EOF; \
} \
- if (FD_SETSIZE > 0 && (fd) >= FD_SETSIZE) \
+ if (!SM_FD_OK_SELECT(fd)) \
{ \
errno = EINVAL; \
return SM_IO_EOF; \
OpenPOWER on IntegriCloud