aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysselect.h
diff options
context:
space:
mode:
authorPaul Eggert <[email protected]>2013-08-27 12:36:28 -0700
committerPaul Eggert <[email protected]>2013-08-27 12:36:28 -0700
commitd486344e6fd74e4769cc7b3d09a1ea87387c5a11 (patch)
treee9ff0c112e6dbec49258aabe30122b389f9b6f20 /src/sysselect.h
parentb73517d9ecf5efeea0d6cbde56730132f5e1b611 (diff)
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/sysselect.h')
-rw-r--r--src/sysselect.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/sysselect.h b/src/sysselect.h
index 0a4f7e3ad9..5df0af9ed3 100644
--- a/src/sysselect.h
+++ b/src/sysselect.h
@@ -25,15 +25,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
definitions in w32.h are incompatible with the below. */
#ifndef WINDOWSNT
#ifdef FD_SET
-#ifdef FD_SETSIZE
-#define MAXDESC FD_SETSIZE
-#else
-#define MAXDESC 64
+#ifndef FD_SETSIZE
+#define FD_SETSIZE 64
#endif
-#define SELECT_TYPE fd_set
#else /* no FD_SET */
-#define MAXDESC 32
-#define SELECT_TYPE int
+#define FD_SETSIZE 32
+typedef int fd_set;
/* Define the macros to access a single-int bitmap of descriptors. */
#define FD_SET(n, p) (*(p) |= (1 << (n)))