aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorPaul Eggert2013-08-27 12:36:28 -0700
committerPaul Eggert2013-08-27 12:36:28 -0700
commitd486344e6fd74e4769cc7b3d09a1ea87387c5a11 (patch)
treee9ff0c112e6dbec49258aabe30122b389f9b6f20 /src/sysdep.c
parentb73517d9ecf5efeea0d6cbde56730132f5e1b611 (diff)
downloademacs-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.c4
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
591static int old_fcntl_flags[MAXDESC]; 591static int old_fcntl_flags[FD_SETSIZE];
592#endif 592#endif
593 593
594void 594void
@@ -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
820static int old_fcntl_owner[MAXDESC]; 820static 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,