diff options
| author | Karl Heuer | 1995-01-23 23:10:11 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-01-23 23:10:11 +0000 |
| commit | 5886acf9ae69668883973a39db9176fa99c1d1c0 (patch) | |
| tree | cfb3646db937616dd71c9832bc431c538d8fa325 /src/process.c | |
| parent | 3ef31cb524d49c45c80da2779bb3fbde7625744f (diff) | |
| download | emacs-5886acf9ae69668883973a39db9176fa99c1d1c0.tar.gz emacs-5886acf9ae69668883973a39db9176fa99c1d1c0.zip | |
#include sysselect.h instead of defining things by hand.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/process.c b/src/process.c index 526f46f0db2..acd2d0b08fe 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -202,26 +202,7 @@ static int process_tick; | |||
| 202 | /* Number of events for which the user or sentinel has been notified. */ | 202 | /* Number of events for which the user or sentinel has been notified. */ |
| 203 | static int update_tick; | 203 | static int update_tick; |
| 204 | 204 | ||
| 205 | #ifdef FD_SET | 205 | #include "sysselect.h" |
| 206 | /* We could get this from param.h, but better not to depend on finding that. | ||
| 207 | And better not to risk that it might define other symbols used in this | ||
| 208 | file. */ | ||
| 209 | #ifdef FD_SETSIZE | ||
| 210 | #define MAXDESC FD_SETSIZE | ||
| 211 | #else | ||
| 212 | #define MAXDESC 64 | ||
| 213 | #endif | ||
| 214 | #define SELECT_TYPE fd_set | ||
| 215 | #else /* no FD_SET */ | ||
| 216 | #define MAXDESC 32 | ||
| 217 | #define SELECT_TYPE int | ||
| 218 | |||
| 219 | /* Define the macros to access a single-int bitmap of descriptors. */ | ||
| 220 | #define FD_SET(n, p) (*(p) |= (1 << (n))) | ||
| 221 | #define FD_CLR(n, p) (*(p) &= ~(1 << (n))) | ||
| 222 | #define FD_ISSET(n, p) (*(p) & (1 << (n))) | ||
| 223 | #define FD_ZERO(p) (*(p) = 0) | ||
| 224 | #endif /* no FD_SET */ | ||
| 225 | 206 | ||
| 226 | /* If we support X Windows, turn on the code to poll periodically | 207 | /* If we support X Windows, turn on the code to poll periodically |
| 227 | to detect C-g. It isn't actually used when doing interrupt input. */ | 208 | to detect C-g. It isn't actually used when doing interrupt input. */ |