diff options
| author | Paul Eggert | 2013-08-27 12:36:28 -0700 |
|---|---|---|
| committer | Paul Eggert | 2013-08-27 12:36:28 -0700 |
| commit | d486344e6fd74e4769cc7b3d09a1ea87387c5a11 (patch) | |
| tree | e9ff0c112e6dbec49258aabe30122b389f9b6f20 /src/sysdep.c | |
| parent | b73517d9ecf5efeea0d6cbde56730132f5e1b611 (diff) | |
| download | emacs-d486344e6fd74e4769cc7b3d09a1ea87387c5a11.tar.gz emacs-d486344e6fd74e4769cc7b3d09a1ea87387c5a11.zip | |
Simplify SELECT_TYPE-related code.
Like EMACS_TIME, this portability layer is no longer needed, since
Emacs has been using fd_set as a portability layer for some time.
* sysselect.h (FD_SETSIZE): Rename from MAXDESC. All uses changed.
(SELECT_TYPE): Remove. All uses changed to fd_set.
(fd_set) [!FD_SET]: New typedef.
Diffstat (limited to 'src/sysdep.c')
| -rw-r--r-- | src/sysdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index e43991f41ab..6439697501e 100644 --- a/src/sysdep.c +++ b/src/sysdep.c | |||
| @@ -588,7 +588,7 @@ restore_signal_handlers (struct save_signal *saved_handlers) | |||
| 588 | } | 588 | } |
| 589 | 589 | ||
| 590 | #ifdef USABLE_SIGIO | 590 | #ifdef USABLE_SIGIO |
| 591 | static int old_fcntl_flags[MAXDESC]; | 591 | static int old_fcntl_flags[FD_SETSIZE]; |
| 592 | #endif | 592 | #endif |
| 593 | 593 | ||
| 594 | void | 594 | void |
| @@ -817,7 +817,7 @@ emacs_set_tty (int fd, struct emacs_tty *settings, bool flushp) | |||
| 817 | 817 | ||
| 818 | 818 | ||
| 819 | #ifdef F_SETOWN | 819 | #ifdef F_SETOWN |
| 820 | static int old_fcntl_owner[MAXDESC]; | 820 | static int old_fcntl_owner[FD_SETSIZE]; |
| 821 | #endif /* F_SETOWN */ | 821 | #endif /* F_SETOWN */ |
| 822 | 822 | ||
| 823 | /* This may also be defined in stdio, | 823 | /* This may also be defined in stdio, |