changeset 10527:68b8191091a7

#include sysselect.h instead of defining things by hand.
author Karl Heuer <kwzh@gnu.org>
date Mon, 23 Jan 1995 23:10:11 +0000
parents 62d5058cf94a
children e020d8d5dc2c
files src/process.c
diffstat 1 files changed, 1 insertions(+), 20 deletions(-) [+]
line wrap: on
line diff
--- a/src/process.c	Mon Jan 23 23:03:37 1995 +0000
+++ b/src/process.c	Mon Jan 23 23:10:11 1995 +0000
@@ -202,26 +202,7 @@
 /* Number of events for which the user or sentinel has been notified.  */
 static int update_tick;
 
-#ifdef FD_SET
-/* 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
-#define SELECT_TYPE int
-
-/* Define the macros to access a single-int bitmap of descriptors.  */
-#define FD_SET(n, p) (*(p) |= (1 << (n)))
-#define FD_CLR(n, p) (*(p) &= ~(1 << (n)))
-#define FD_ISSET(n, p) (*(p) & (1 << (n)))
-#define FD_ZERO(p) (*(p) = 0)
-#endif /* no FD_SET */
+#include "sysselect.h"
 
 /* If we support X Windows, turn on the code to poll periodically
    to detect C-g.  It isn't actually used when doing interrupt input.  */