mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -08:00
(MAXDESC): Get it from FD_SETSIZE if that exists.
This commit is contained in:
parent
a210860236
commit
334c4f2ffd
1 changed files with 4 additions and 0 deletions
|
|
@ -235,7 +235,11 @@ int update_tick;
|
|||
/* We could get this from param.h, but better not to depend on finding that.
|
||||
And better not to risk that it might define other symbols used in this
|
||||
file. */
|
||||
#ifdef FD_SETSIZE
|
||||
#define MAXDESC FD_SETSIZE
|
||||
#else
|
||||
#define MAXDESC 64
|
||||
#endif
|
||||
#define SELECT_TYPE fd_set
|
||||
#else /* no FD_SET */
|
||||
#define MAXDESC 32
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue